Skip to content

Commit 3eebec6

Browse files
committed
doc: fix compiler output
In the Rust code above, the function is called print_sum, so use the same function name in the error message.
1 parent 004c4b4 commit 3eebec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/functions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You get this error:
6868

6969
```text
7070
expected one of `!`, `:`, or `@`, found `)`
71-
fn print_number(x, y) {
71+
fn print_sum(x, y) {
7272
```
7373

7474
This is a deliberate design decision. While full-program inference is possible,

0 commit comments

Comments
 (0)