Skip to content

Commit f511275

Browse files
authored
Merge pull request #1339 from FabienTregan/master
Removes 'main{' and '}' from listing 11-12 so it compiles.
2 parents 4e429be + f319b7b commit f511275

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

2018-edition/src/ch11-03-test-organization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Consider the code in Listing 11-12 with the private function `internal_adder`:
6767
<span class="filename">Filename: src/lib.rs</span>
6868

6969
```rust
70+
# fn main() {}
71+
7072
pub fn add_two(a: i32) -> i32 {
7173
internal_adder(a, 2)
7274
}

0 commit comments

Comments
 (0)