File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11/**
2- * A program that takes a value, eg b , and returns its type
2+ * A program that takes a value, eg 5 , and returns its type
33 * plus other types
44 *
55 * Note: the program doesn't accept strings
@@ -57,7 +57,7 @@ fn main() {
5757 }
5858}
5959
60- // Print sizes of types excluding the one that matched
60+ // Print sizes of types, excluding the one that matched
6161fn print_other_types ( exclude : & str ) {
6262 println ! ( "Other types:" ) ;
6363 if exclude != "char" {
@@ -67,7 +67,7 @@ fn print_other_types(exclude: &str) {
6767 println ! ( "Size of i32: {} bytes" , mem:: size_of:: <i32 >( ) ) ;
6868 }
6969 if exclude != "u32" {
70- println ! ( "Size of u32 : {} bytes" , mem:: size_of:: <u32 >( ) ) ;
70+ println ! ( "Size of i32 : {} bytes" , mem:: size_of:: <i32 >( ) ) ; // bug to fix
7171 }
7272 if exclude != "f64" {
7373 println ! ( "Size of f64: {} bytes" , mem:: size_of:: <f64 >( ) ) ;
You can’t perform that action at this time.
0 commit comments