Skip to content

Commit 12baadb

Browse files
resolution successful for Hasan508-hub (version 3) (#26)
Co-authored-by: github-actions <154701770+rezzcode@users.noreply.github.com>
1 parent 3f4d66c commit 12baadb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Solutions/Conflict-fixes/Hasan508-hub-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)