Skip to content

Commit 20ddc34

Browse files
authored
Update alias.md
This change resolved compiler error of cannot find type "U64" in this scope.
1 parent c0be629 commit 20ddc34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/alias.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type U64 = u64;
1212
1313
fn main() {
1414
// `NanoSecond` = `Inch` = `U64` = `u64`.
15-
let nanoseconds: NanoSecond = 5 as U64;
15+
let nanoseconds: NanoSecond = 5 as u64;
1616
let inches: Inch = 2 as U64;
1717
1818
// Note that type aliases *don't* provide any extra type safety, because

0 commit comments

Comments
 (0)