Fix doc comment on format::desktop_entry::next

This commit is contained in:
Sasha Koshka 2024-10-20 13:03:19 -04:00
parent b42b1b1dd2
commit 24ee999173

View File

@ -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
// borrowed from the [[scanner]]. Use [[line_dup]] to retain a copy. If all you
// want is the file's data, use next_entry.
// FIXME: there is no line_dup
// borrowed from the [[scanner]]. Use [[strings::dup]], [[entry_dup]], etc. to
// retain a copy. If all you want is the file's data, use [[next_entry]].
export fn next(this: *scanner) (line | io::EOF | error) = {
let text = match (bufio::scan_line(&this.scanner)) {
case let text: const str =>