diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2016-02-14 18:02:32 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2016-02-14 18:02:32 -0500 |
| commit | fb09a441c664704a7a49d0fba70c1c61dc7bed51 (patch) | |
| tree | 703c1e55d999802416069e585c5869787ed2680a /src | |
| parent | c244acceb45e0b739d8ad6a896870c93dbb9acec (diff) | |
| parent | 3eebec697ca4031b98aa32939701ed80e3a41706 (diff) | |
| download | rust-fb09a441c664704a7a49d0fba70c1c61dc7bed51.tar.gz rust-fb09a441c664704a7a49d0fba70c1c61dc7bed51.zip | |
Rollup merge of #31658 - felgru:master, r=steveklabnik
In the Rust code above this block of compiler output, the function is called print_sum, so use the same function name in the error message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/book/functions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/functions.md b/src/doc/book/functions.md index be905599c64..31c9da3fada 100644 --- a/src/doc/book/functions.md +++ b/src/doc/book/functions.md @@ -68,7 +68,7 @@ You get this error: ```text expected one of `!`, `:`, or `@`, found `)` -fn print_number(x, y) { +fn print_sum(x, y) { ``` This is a deliberate design decision. While full-program inference is possible, |
