Skip to content
Permalink
Browse files

_

  • Loading branch information
stnbu committed Nov 15, 2018
1 parent e3692eb commit b485289dd5b8563b5b70798b2ce7c1264d632aea
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/main.rs
@@ -85,7 +85,20 @@ fn m_atch() {
_foo = 99;
}

fn o_ption() {
let mut rng = 0..7;
println!("> {:?}", rng.next());
println!("> {:?}", rng.next());
loop {
match rng.next() {
Some(n) => println!("{:?}", n),
None => {println!("broke"); break},
}
}
}

fn main() {
o_ption();
get_element_n_of_string();
misreuse_of_closure();
bytes_to_utf8();

0 comments on commit b485289

Please sign in to comment.