Skip to content

Commit 48e4fb3

Browse files
authored
diverging: fix issues with example code
- Fixes code not compiling due to missing semicolon - Fixes warning about the unused variable `a`
1 parent 03491f3 commit 48e4fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fn/diverging.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ fn some_fn() {
2121
}
2222

2323
fn main() {
24-
let a: () = some_fn();
25-
println!("This function returns and you can see this line.")
24+
let _a: () = some_fn();
25+
println!("This function returns and you can see this line.");
2626
}
2727
```
2828

0 commit comments

Comments
 (0)