authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-08 01:38:01-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-08 01:38:01-05:00
logc48831512b017202aa8797b72b11eb6993c9428e
tree71124284e4a99ecff728d3e6b5c68c5ad44122d8
parenteddca500595aef9a43d04c4ad9e8845d8adf35e2
signature Commit is signed but in an unrecognized format.

std lib typo fixups


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

lib/std/event/loop.zig+2-2
...@@ -851,7 +851,7 @@ pub const Loop = struct {...@@ -851,7 +851,7 @@ pub const Loop = struct {
851851
852 /// Performs an async `os.writev` using a separate thread.852 /// Performs an async `os.writev` using a separate thread.
853 /// `fd` must block and not return EAGAIN.853 /// `fd` must block and not return EAGAIN.
854 pub fn writev(self: *Loop, fd: os.fd_t, iov: []const os.iovec_const) WriteError!void {854 pub fn writev(self: *Loop, fd: os.fd_t, iov: []const os.iovec_const) os.WriteError!void {
855 var req_node = Request.Node{855 var req_node = Request.Node{
856 .data = .{856 .data = .{
857 .msg = .{857 .msg = .{
...@@ -872,7 +872,7 @@ pub const Loop = struct {...@@ -872,7 +872,7 @@ pub const Loop = struct {
872872
873 /// Performs an async `os.pwritev` using a separate thread.873 /// Performs an async `os.pwritev` using a separate thread.
874 /// `fd` must block and not return EAGAIN.874 /// `fd` must block and not return EAGAIN.
875 pub fn pwritev(self: *Loop, fd: os.fd_t, iov: []const os.iovec_const, offset: u64) WriteError!void {875 pub fn pwritev(self: *Loop, fd: os.fd_t, iov: []const os.iovec_const, offset: u64) os.WriteError!void {
876 var req_node = Request.Node{876 var req_node = Request.Node{
877 .data = .{877 .data = .{
878 .msg = .{878 .msg = .{
lib/std/fs.zig+1
...@@ -706,6 +706,7 @@ pub const Dir = struct {...@@ -706,6 +706,7 @@ pub const Dir = struct {
706 }706 }
707707
708 /// Opens a file for reading or writing, without attempting to create a new file.708 /// Opens a file for reading or writing, without attempting to create a new file.
709 /// To create a new file, see `createFile`.
709 /// Call `File.close` to release the resource.710 /// Call `File.close` to release the resource.
710 /// Asserts that the path parameter has no null bytes.711 /// Asserts that the path parameter has no null bytes.
711 pub fn openFile(self: Dir, sub_path: []const u8, flags: File.OpenFlags) File.OpenError!File {712 pub fn openFile(self: Dir, sub_path: []const u8, flags: File.OpenFlags) File.OpenError!File {
lib/std/net.zig+2-2
...@@ -378,8 +378,8 @@ pub fn connectUnixSocket(path: []const u8) !fs.File {...@@ -378,8 +378,8 @@ pub fn connectUnixSocket(path: []const u8) !fs.File {
378 );378 );
379379
380 return fs.File{380 return fs.File{
381 .handle = socket,381 .handle = sockfd,
382 .is_blocking = std.io.mode,382 .io_mode = std.io.mode,
383 };383 };
384}384}
385385