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
signaturelock-open 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 {
851851
852852 /// Performs an async `os.writev` using a separate thread.
853853 /// `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 {
855855 var req_node = Request.Node{
856856 .data = .{
857857 .msg = .{
......@@ -872,7 +872,7 @@ pub const Loop = struct {
872872
873873 /// Performs an async `os.pwritev` using a separate thread.
874874 /// `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 {
876876 var req_node = Request.Node{
877877 .data = .{
878878 .msg = .{
lib/std/fs.zig+1
......@@ -706,6 +706,7 @@ pub const Dir = struct {
706706 }
707707
708708 /// Opens a file for reading or writing, without attempting to create a new file.
709 /// To create a new file, see `createFile`.
709710 /// Call `File.close` to release the resource.
710711 /// Asserts that the path parameter has no null bytes.
711712 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 {
378378 );
379379
380380 return fs.File{
381 .handle = socket,
382 .is_blocking = std.io.mode,
381 .handle = sockfd,
382 .io_mode = std.io.mode,
383383 };
384384}
385385