mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 00:43:29 +02:00
Make primitive_types3 require at least 100 elements
Made the function panic if it's not long enough
This commit is contained in:
co-authored by
GitHub
parent
4d04aad890
commit
a5e4133516
@@ -14,5 +14,6 @@ fn main() {
|
||||
println!("Wow, that's a big array!");
|
||||
} else {
|
||||
println!("Meh, I eat arrays like that for breakfast.");
|
||||
panic!("Array not big enough, more elements needed")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user