diff options
| author | Felix Gruber <felgru@gmx.de> | 2016-02-14 20:50:12 +0100 |
|---|---|---|
| committer | Felix Gruber <felgru@gmx.de> | 2016-02-14 20:50:12 +0100 |
| commit | 3eebec697ca4031b98aa32939701ed80e3a41706 (patch) | |
| tree | 92a11065a45ad4b2b560140cf133e228edac93c0 /src/doc | |
| parent | 004c4b4b7d581f54365bc621a23106e970120f99 (diff) | |
| download | rust-3eebec697ca4031b98aa32939701ed80e3a41706.tar.gz rust-3eebec697ca4031b98aa32939701ed80e3a41706.zip | |
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.
Diffstat (limited to 'src/doc')
| -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, |
