commit ccba718bbde9f5e01f167dd8cc6649264edc1df1 parent f79e08cface629b7f7436103f81461e6ad9be0a7 Author: Eyal Sawady <ecs@d2evs.net> Date: Fri, 15 Oct 2021 10:18:23 +0000 io+linux::fd_read: fix indentation Signed-off-by: Eyal Sawady <ecs@d2evs.net> Diffstat:
M | io/+linux/file.ha | | | 18 | +++++++++--------- |
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/io/+linux/file.ha b/io/+linux/file.ha @@ -74,15 +74,15 @@ export fn unwrapfd(s: *stream) (int | void) = { fn fd_read(s: *stream, buf: []u8) (size | EOF | error) = { let stream = s: *file; match (rt::read(stream.fd, buf: *[*]u8, len(buf))) { - case err: rt::errno => - return errors::errno(err); - case n: size => - switch (n) { - case 0 => - return EOF; - case => - return n; - }; + case err: rt::errno => + return errors::errno(err); + case n: size => + switch (n) { + case 0 => + return EOF; + case => + return n; + }; }; };