diff options
| author | Jay Petacat <jay@jayschwa.net> | 2021-01-08 15:36:02 -0500 |
|---|---|---|
| committer | Jay Petacat <jay@jayschwa.net> | 2021-01-08 16:54:56 -0500 |
| commit | 1595ce273edb32493231a43216a15cfbeb9ffc12 (patch) | |
| tree | 8bc5d3dd3e0c9e7066c61f235bfba98cb78e6589 /doc | |
| parent | 2b3b355a23bea47aacbdfd56b853abc83e2f3ed6 (diff) | |
| download | zig-1595ce273edb32493231a43216a15cfbeb9ffc12.tar.gz zig-1595ce273edb32493231a43216a15cfbeb9ffc12.zip | |
Remove deprecated stream aliases
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index 9d89e894ad..85917680d3 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -6120,7 +6120,7 @@ pub fn main() void { {#code_begin|syntax#} /// Calls print and then flushes the buffer. -pub fn printf(self: *OutStream, comptime format: []const u8, args: anytype) anyerror!void { +pub fn printf(self: *Writer, comptime format: []const u8, args: anytype) anyerror!void { const State = enum { start, open_brace, @@ -6192,7 +6192,7 @@ pub fn printf(self: *OutStream, comptime format: []const u8, args: anytype) anye and emits a function that actually looks like this: </p> {#code_begin|syntax#} -pub fn printf(self: *OutStream, arg0: i32, arg1: []const u8) !void { +pub fn printf(self: *Writer, arg0: i32, arg1: []const u8) !void { try self.write("here is a string: '"); try self.printValue(arg0); try self.write("' here is a number: "); @@ -6206,7 +6206,7 @@ pub fn printf(self: *OutStream, arg0: i32, arg1: []const u8) !void { on the type: </p> {#code_begin|syntax#} -pub fn printValue(self: *OutStream, value: anytype) !void { +pub fn printValue(self: *Writer, value: anytype) !void { switch (@typeInfo(@TypeOf(value))) { .Int => { return self.printInt(T, value); |
