Skip to content

Commit c69f49c

Browse files
committed
Update to Unicode 13
Change version fields to u8 as the maximum value of each field is 255 according to specification.
1 parent 3033826 commit c69f49c

File tree

2 files changed

+184
-180
lines changed

2 files changed

+184
-180
lines changed

scripts/unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def optimize_width_table(wtable):
292292
rf.write("""
293293
/// The version of [Unicode](http://www.unicode.org/)
294294
/// that this version of unicode-width is based on.
295-
pub const UNICODE_VERSION: (u64, u64, u64) = (%s, %s, %s);
295+
pub const UNICODE_VERSION: (u8, u8, u8) = (%s, %s, %s);
296296
297297
""" % unicode_version)
298298
gencats = load_unicode_data("UnicodeData.txt")

0 commit comments

Comments
 (0)