]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | fn main() { |
2 | ||
3 | ||
4 | ||
5 | ||
6 | let x = 1; | |
7 | ||
8 | ||
9 | let y = 2; | |
10 | ||
11 | ||
12 | println!("x + y = {}", x + y); | |
13 | ||
14 | ||
15 | ||
16 | } | |
17 | ||
18 | ||
19 | fn foo() { | |
20 | ||
21 | #![attribute] | |
22 | ||
23 | let x = 1; | |
24 | ||
25 | // comment | |
26 | ||
27 | ||
28 | } | |
29 | // comment after item | |
30 | ||
31 | ||
32 | // comment before item | |
33 | fn bar() { | |
34 | let x = 1; | |
35 | // comment after statement | |
36 | ||
37 | ||
38 | // comment before statement | |
39 | let y = 2; | |
40 | let z = 3; | |
41 | ||
42 | ||
43 | println!("x + y + z = {}", x + y + z); | |
44 | } |