Skip to content

Commit 588837c

Browse files
authored
Merge pull request #14
Introduce conflicting change for the1Riddle (version 3)
2 parents d9e9bf8 + c7c77f8 commit 588837c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Solutions/Conflict-fixes/the1Riddle-code_scenario.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
6161
fn 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>());

0 commit comments

Comments
 (0)