Improve doc comment on format::desktop_entry::strerror

This commit is contained in:
Sasha Koshka 2024-10-20 13:39:11 -04:00
parent 24ee999173
commit 30926c1f10

View File

@ -24,7 +24,8 @@ export type invalid_ascii = !void;
// Returned when an invalid escape sequence was enctountered while parsing.
export type invalid_escape = !void;
// Converts a desktop entry [[error]] into a user-friendly string.
// Returns a user-friendly representation of [[error]]. The result may be
// statically allocated.
export fn strerror(err: error) str = match (err) {
case invalid_group_header => yield "invalid group header";
case invalid_entry => yield "invalid entry";