Skip to content

Commit ccea7a8

Browse files
committed
update std/io
1 parent 3e7ebc3 commit ccea7a8

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/std/io.md

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -158,32 +158,4 @@ trait Stream {
158158
Closer
159159
}
160160
```
161-
Inheritance group for the `Reader`, `ReadCloser`, `Writer`, `WriteCloser`, `ReadWriter` and `Closer` traits.
162-
163-
## Structs
164-
165-
```jule
166-
struct Scanner
167-
```
168-
Scanner for files or etc.
169-
Scans bytes line-by-line.
170-
171-
**Methods:**
172-
173-
`static fn New(mut r: Reader): &Scanner`\
174-
New `&Scanner` from `Reader`.
175-
176-
`static fn Newf(mut f: &os::File): &Scanner`\
177-
New `&Scanner` from `&File`.
178-
Uses `&FileStream` for `Reader` trait compatibility.
179-
180-
`fn Bytes(self): []byte`\
181-
Returns bytes of recent scan.
182-
Returned slice is mutable copy of buffer.
183-
The next `Scan` call will write into same internal allocation.
184-
185-
`fn Text(self): str`\
186-
Returns text from bytes of recent scan.
187-
188-
`fn Scan(self)!: bool`\
189-
Scans line from handle via read method. Scans bytes until end of the line, line delimiter is not included. Reports whether readed byte into buffer. Forwards any exceptional.
161+
Inheritance group for the `Reader`, `ReadCloser`, `Writer`, `WriteCloser`, `ReadWriter` and `Closer` traits.

0 commit comments

Comments
 (0)