Skip to content

Commit

Permalink
Merge pull request #1790 from TaduJR/patch-1
Browse files Browse the repository at this point in the history
Update alias.md
  • Loading branch information
marioidival committed Jan 13, 2024
2 parents c0be629 + 20ddc34 commit b02af1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type U64 = u64;
fn main() {
// `NanoSecond` = `Inch` = `U64` = `u64`.
let nanoseconds: NanoSecond = 5 as U64;
let nanoseconds: NanoSecond = 5 as u64;
let inches: Inch = 2 as U64;
// Note that type aliases *don't* provide any extra type safety, because
Expand Down

0 comments on commit b02af1a

Please sign in to comment.