From 3a2e962316f997cacd52fbe59df9aeb387f3ceb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Mon, 6 Apr 2020 01:47:42 +0200 Subject: [PATCH] Use T::MAX instead of std::T::MAX where T is an integer --- src/types/cast.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/cast.md b/src/types/cast.md index e455b81f23..350f9d6fe6 100644 --- a/src/types/cast.md +++ b/src/types/cast.md @@ -25,7 +25,7 @@ fn main() { println!("Casting: {} -> {} -> {}", decimal, integer, character); // when casting any value to an unsigned type, T, - // std::T::MAX + 1 is added or subtracted until the value + // T::MAX + 1 is added or subtracted until the value // fits into the new type // 1000 already fits in a u16