diff options
| author | Dennis Schön <mail@dennis-schoen.de> | 2025-02-04 21:27:44 +0100 |
|---|---|---|
| committer | Dennis Schön <mail@dennis-schoen.de> | 2025-02-04 21:27:44 +0100 |
| commit | fbf536f465d22e5ea67bb9a4f973d7cebcf8915f (patch) | |
| tree | 01828a4741ce51363cb804b352caec31066c0a65 | |
| parent | 0e1c89e99bcd31f58e12a0b13db5f83150f53e9f (diff) | |
`core:io` small documentation fixes
| -rw-r--r-- | core/io/io.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/io.odin b/core/io/io.odin index 6072aec6d..c2b44cbdb 100644 --- a/core/io/io.odin +++ b/core/io/io.odin @@ -126,7 +126,7 @@ _i64_err :: #force_inline proc "contextless" (n: int, err: Error) -> (i64, Error } -// read reads up to len(p) bytes into s. It returns the number of bytes read and any error if occurred. +// read reads up to len(p) bytes into p. It returns the number of bytes read and any error if occurred. // // When read encounters an .EOF or error after successfully reading n > 0 bytes, it returns the number of // bytes read along with the error. @@ -142,7 +142,7 @@ read :: proc(s: Reader, p: []byte, n_read: ^int = nil) -> (n: int, err: Error) { return } -// write writes up to len(p) bytes into s. It returns the number of bytes written and any error if occurred. +// write writes up to len(p) bytes into p. It returns the number of bytes written and any error if occurred. write :: proc(s: Writer, p: []byte, n_written: ^int = nil) -> (n: int, err: Error) { if s.procedure != nil { n64: i64 |