Skip to content

Commit 3a2e962

Browse files
committed
Use T::MAX instead of std::T::MAX where T is an integer
1 parent 25482c1 commit 3a2e962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/cast.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
println!("Casting: {} -> {} -> {}", decimal, integer, character);
2626
2727
// when casting any value to an unsigned type, T,
28-
// std::T::MAX + 1 is added or subtracted until the value
28+
// T::MAX + 1 is added or subtracted until the value
2929
// fits into the new type
3030
3131
// 1000 already fits in a u16

0 commit comments

Comments
 (0)