Skip to content

Commit

Permalink
fixup! Port BCP47 to OpenType tag conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 29, 2024
1 parent 4cb771d commit 3c09046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gen-tag-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def same_tag(bcp_47_tag, ot_tags):
print('fn strncmp(s1: &str, s2: &str, n: usize) -> bool {')
print(' let n1 = core::cmp::min(n, s1.len());')
print(' let n2 = core::cmp::min(n, s2.len());')
print(' &s1[..n1] == &s2[..n2]')
print(' s1[..n1] == s2[..n2]')
print('}')
print()
print('/// Converts a multi-subtag BCP 47 language tag to language tags.')
Expand Down

0 comments on commit 3c09046

Please sign in to comment.