Flow control for in RBE
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fn main() {
|
||||
let names = vec!["Bob", "Frank", "Ferris"];
|
||||
|
||||
for name in names.into_iter() {
|
||||
match name {
|
||||
"Ferris" => println!("There is a rustacean among us!"),
|
||||
_ => println!("Hello {}", name),
|
||||
}
|
||||
}
|
||||
|
||||
//println!("names: {:?}", names);
|
||||
}
|
||||
Reference in New Issue
Block a user