]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | extern crate interesting; |
2 | ||
3 | fn main() { | |
4 | let arg = std::env::args().skip(1).next().unwrap(); | |
5 | ||
6 | for c in arg.chars() { | |
7 | if c == '2' { | |
8 | interesting::function_called_twice(c); | |
9 | } else { | |
10 | interesting::function_called_42_times(c); | |
11 | } | |
12 | ||
13 | if c == '0' { | |
14 | interesting::function_called_never(c); | |
15 | } | |
16 | } | |
17 | } |