Skip to content

Commit 7fedb92

Browse files
author
Hiroki Okada
authored
docs: clarify doc comments for ISO validation functions (#8227)
1 parent 4ca088c commit 7fedb92

File tree

1 file changed

+3
-3
lines changed
  • crates/biome_aria_metadata/src

1 file changed

+3
-3
lines changed

crates/biome_aria_metadata/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ pub const ISO_SCRIPTS: [&str; 28] = [
3939
"Telu", "Thai", "Tibt", "Zyyy",
4040
];
4141

42-
/// Returns a list of valid ISO countries
42+
/// Returns whether the given string is a valid ISO country code
4343
pub fn is_valid_country(country: &str) -> bool {
4444
IsoCountries::from_str(country).is_ok()
4545
}
4646

47-
/// Returns a list of valid ISO languages
47+
/// Returns whether the given string is a valid ISO language code
4848
pub fn is_valid_language(language: &str) -> bool {
4949
IsoLanguages::from_str(language).is_ok()
5050
}
5151

52-
/// Returns whether the given script code is a valid ISO script
52+
/// Returns whether the given string is a valid ISO script code
5353
pub fn is_valid_script(script: &str) -> bool {
5454
IsoScripts::from_str(script).is_ok()
5555
}

0 commit comments

Comments
 (0)