Added comment to is_digit

This commit is contained in:
StudebakerGuy
2026-03-07 18:13:04 -05:00
committed by Jeroen van Rijn
parent 673adf30c3
commit 263bc8cc7e

View File

@@ -131,6 +131,17 @@ is_title :: proc(r: rune) -> bool {
return is_upper(r) && is_lower(r)
}
/*
This function determincs if a rune is a digit. To be a digit the
charage either has a Numeric_Type of Digit or Decimal.
Inputs:
- r: The rune to check if it is a digit.
Returns:
`true` if the rune `r` is a digit, `false` in all other cases
*/
@(require_results)
is_digit :: proc(r: rune) -> bool {
if r <= MAX_LATIN1 {