Fix doc comment on format::desktop_entry::next
This commit is contained in:
parent
b42b1b1dd2
commit
24ee999173
@ -19,9 +19,8 @@ export fn scan(input: io::handle) scanner = scanner {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Returns the next line from a desktop entry file. The return value is
|
// Returns the next line from a desktop entry file. The return value is
|
||||||
// borrowed from the [[scanner]]. Use [[line_dup]] to retain a copy. If all you
|
// borrowed from the [[scanner]]. Use [[strings::dup]], [[entry_dup]], etc. to
|
||||||
// want is the file's data, use next_entry.
|
// retain a copy. If all you want is the file's data, use [[next_entry]].
|
||||||
// FIXME: there is no line_dup
|
|
||||||
export fn next(this: *scanner) (line | io::EOF | error) = {
|
export fn next(this: *scanner) (line | io::EOF | error) = {
|
||||||
let text = match (bufio::scan_line(&this.scanner)) {
|
let text = match (bufio::scan_line(&this.scanner)) {
|
||||||
case let text: const str =>
|
case let text: const str =>
|
||||||
|
Loading…
Reference in New Issue
Block a user