mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: fix typos (#21089)
This commit is contained in:
parent
9ad84ddc21
commit
f77bb32044
193 changed files with 403 additions and 402 deletions
|
@ -510,7 +510,7 @@ fn validate_utf8_codepoint_string(str string) ! {
|
|||
return error('Unicode code point `${str}` is outside the valid Unicode scalar value ranges.')
|
||||
}
|
||||
// Check if the Unicode value is actually in the valid Unicode scalar value ranges.
|
||||
// TODO should probably be transferred / implemented in `utf8.validate(...)` also?
|
||||
// TODO: should probably be transferred / implemented in `utf8.validate(...)` also?
|
||||
if !((int_val >= 0x0000 && int_val <= 0xD7FF) || (int_val >= 0xE000 && int_val <= 0x10FFFF)) {
|
||||
return error('Unicode code point `${str}` is not a valid Unicode scalar value.')
|
||||
}
|
||||
|
@ -535,7 +535,7 @@ fn (c Checker) check_unicode_escape(esc_unicode string) ! {
|
|||
return error('Unicode escape sequence `${esc_unicode}` should be at least ${hex_digits_len} in length.')
|
||||
}
|
||||
sequence = sequence[..hex_digits_len]
|
||||
// TODO not enforced in BurnSushi testsuite??
|
||||
// TODO: not enforced in BurnSushi testsuite??
|
||||
// if !sequence.is_upper() {
|
||||
// return error('Unicode escape sequence `$esc_unicode` is not in all uppercase.')
|
||||
//}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue