Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

finishModuleAsm

Builder.finishModuleAsm
pub fn finishModuleAsm(self: *Builder, aw: *Writer.Allocating) Allocator.Error!void

File

lib/std/zig/llvm/Builder.zig:8945

Code

pub fn finishModuleAsm(self: *Builder, aw: *Writer.Allocating) Allocator.Error!void {
    self.module_asm = aw.toArrayList();
    if (self.module_asm.getLast()) |last| if (last != '\n')
        try self.module_asm.append(self.gpa, '\n');
}