locale: Fixed doc comment for string_resolve

This commit is contained in:
Sasha Koshka 2024-10-22 17:23:50 -04:00
parent 2c7e8ef76d
commit 24b58f584f

View File

@ -17,11 +17,11 @@ export type string = [](locale, str);
// -------------------------------------------------------------------------- //
// Selects the most appropriate localized version of a [[string]] given a
// [[locale]]. The matching algorithm used is the one specified by the
// XDG Desktop Entry Specification, §5, with the addition of a preliminary step
// where a match against the exact locale is attempted. If no suitable version
// is found, an exact match with the C locale will be attempted. If there are
// none, void will be returned. Memory is borrowed from the input.
// [[locale]]. First, a match against the exact locale is attempted. If nothing
// is found, the matching algorithm specified by the XDG Desktop Entry
// Specification §5 is used. If nothing is found, an exact match with the C
// locale will be attempted. If nothing is found, void will be returned. Memory
// is borrowed from the input.
export fn string_resolve(strin: string, local: locale) (str | void) = {
// lang_COUNTRY@MODIFIER.ENCODING
match (string_resolve_exact(strin, local)) {