authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2019-12-09 21:59:12+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-10 11:09:41-05:00
log8c096707b784b3f7f8e1f8381e07d37724263083
tree9c544eeb76e58daeeb31549ae3e54ec1bc2fe156
parent4b4fbe388732da795c924293b4d1af3d9ca5ea69
signature Commit is signed but in an unrecognized format.

Additional replacements of @typeOf with @TypeOf


3 files changed, 4 insertions(+), 4 deletions(-)

lib/std/fmt.zig+1-1
......@@ -80,7 +80,7 @@ fn peekIsAlign(comptime fmt: []const u8) bool {
8080///
8181/// If a formatted user type contains a function of the type
8282/// ```
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
8484/// ```
8585/// with `?` being the type formatted, this function will be called instead of the default implementation.
8686/// 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 {
138138 };
139139
140140 /// caller must call wait on the returned thread
141 /// fn startFn(@typeOf(context)) T
141 /// fn startFn(@TypeOf(context)) T
142142 /// where T is u8, noreturn, void, or !void
143143 /// caller must call wait on the returned thread
144144 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" {
10711071test "zig fmt: float literal with exponent" {
10721072 try testCanonical(
10731073 \\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);
10751075 \\}
10761076 \\
10771077 );
......@@ -2604,7 +2604,7 @@ test "zig fmt: comments at several places in struct init" {
26042604 try testTransform(
26052605 \\var bar = Bar{
26062606 \\ .x = 10, // test
2607 \\ .y = "test"
2607 \\ .y = "test"
26082608 \\ // test
26092609 \\};
26102610 \\