Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn foo() -> String {
- let mut s = "hello".to_string();
- for i in &[1, 2, 3] {
- if *i == 5 {
- return s;
- }
- }
- s += " world";
- return s;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement