| author | |
| committer | |
| log | 8c096707b784b3f7f8e1f8381e07d37724263083 |
| tree | 9c544eeb76e58daeeb31549ae3e54ec1bc2fe156 |
| parent | 4b4fbe388732da795c924293b4d1af3d9ca5ea69 |
| signature | Commit is signed but in an unrecognized format. |
3 files changed, 4 insertions(+), 4 deletions(-)
lib/std/fmt.zig+1-1| ... | @@ -80,7 +80,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool { | ... | @@ -80,7 +80,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool { |
| 80 | /// | 80 | /// |
| 81 | /// If a formatted user type contains a function of the type | 81 | /// If a formatted user type contains a function of the type |
| 82 | /// ``` | 82 | /// ``` |
| 83 | /// fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, context: var, comptime Errors: type, output: fn (@typeOf(context), []const u8) Errors!void) Errors!void | 83 | /// fn format(value: ?, comptime fmt: []const u8, options: std.fmt.FormatOptions, context: var, comptime Errors: type, output: fn (@TypeOf(context), []const u8) Errors!void) Errors!void |
| 84 | /// ``` | 84 | /// ``` |
| 85 | /// with `?` being the type formatted, this function will be called instead of the default implementation. | 85 | /// with `?` being the type formatted, this function will be called instead of the default implementation. |
| 86 | /// This allows user types to be formatted in a logical manner instead of dumping all fields of the type. | 86 | /// This allows user types to be formatted in a logical manner instead of dumping all fields of the type. |
lib/std/thread.zig+1-1| ... | @@ -138,7 +138,7 @@ pub const Thread = struct { | ... | @@ -138,7 +138,7 @@ pub const Thread = struct { |
| 138 | }; | 138 | }; |
| 139 | 139 | ||
| 140 | /// caller must call wait on the returned thread | 140 | /// caller must call wait on the returned thread |
| 141 | /// fn startFn(@typeOf(context)) T | 141 | /// fn startFn(@TypeOf(context)) T |
| 142 | /// where T is u8, noreturn, void, or !void | 142 | /// where T is u8, noreturn, void, or !void |
| 143 | /// caller must call wait on the returned thread | 143 | /// caller must call wait on the returned thread |
| 144 | pub fn spawn(context: var, comptime startFn: var) SpawnError!*Thread { | 144 | pub fn spawn(context: var, comptime startFn: var) SpawnError!*Thread { |
lib/std/zig/parser_test.zig+2-2| ... | @@ -1071,7 +1071,7 @@ test "zig fmt: line comment after doc comment" { | ... | @@ -1071,7 +1071,7 @@ test "zig fmt: line comment after doc comment" { |
| 1071 | test "zig fmt: float literal with exponent" { | 1071 | test "zig fmt: float literal with exponent" { |
| 1072 | try testCanonical( | 1072 | try testCanonical( |
| 1073 | \\test "bit field alignment" { | 1073 | \\test "bit field alignment" { |
| 1074 | \\ assert(@typeOf(&blah.b) == *align(1:3:6) const u3); | 1074 | \\ assert(@TypeOf(&blah.b) == *align(1:3:6) const u3); |
| 1075 | \\} | 1075 | \\} |
| 1076 | \\ | 1076 | \\ |
| 1077 | ); | 1077 | ); |
| ... | @@ -2604,7 +2604,7 @@ test "zig fmt: comments at several places in struct init" { | ... | @@ -2604,7 +2604,7 @@ test "zig fmt: comments at several places in struct init" { |
| 2604 | try testTransform( | 2604 | try testTransform( |
| 2605 | \\var bar = Bar{ | 2605 | \\var bar = Bar{ |
| 2606 | \\ .x = 10, // test | 2606 | \\ .x = 10, // test |
| 2607 | \\ .y = "test" | 2607 | \\ .y = "test" |
| 2608 | \\ // test | 2608 | \\ // test |
| 2609 | \\}; | 2609 | \\}; |
| 2610 | \\ | 2610 | \\ |