Skip to content

Commit a663846

Browse files
authored
Merge pull request #1327 from faern/use-assoc-int-consts
Use T::MAX instead of std::T::MAX where T is an integer
2 parents 05a98da + 3a2e962 commit a663846

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)