From 1d24ddb8750622e8d9bad449bab5e94d365f3428 Mon Sep 17 00:00:00 2001 From: alkuzo Date: Mon, 4 Jul 2022 07:44:37 -0500 Subject: [PATCH] fix-type --- 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 95e92decaa..6182874cda 100644 --- a/src/types/cast.md +++ b/src/types/cast.md @@ -53,7 +53,7 @@ fn main() { // Unless it already fits, of course. println!(" 128 as a i16 is: {}", 128 as i16); - // 128 as u8 -> -128, whose two's complement in eight bits is: + // 128 as i8 -> -128, whose two's complement in eight bits is: println!(" 128 as a i8 is : {}", 128 as i8); // repeating the example above