diff options
| author | bors <bors@rust-lang.org> | 2014-07-05 18:11:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-05 18:11:43 +0000 |
| commit | c8b2a3167b068f7ea30eebcfa7ad13d4c7ea3026 (patch) | |
| tree | 31dedb36fe2f679e4ec7f8ff2cf37f76360d8973 /src/doc | |
| parent | aaff4e05e19b48d81e4ecb3337f288f42d06edd0 (diff) | |
| parent | f37e202b53d208cd65f45fa96d2f2453b26bb9ee (diff) | |
| download | rust-c8b2a3167b068f7ea30eebcfa7ad13d4c7ea3026.tar.gz rust-c8b2a3167b068f7ea30eebcfa7ad13d4c7ea3026.zip | |
auto merge of #15431 : iliekturtles/rust/13279-error-msg-order, r=pcwalton
Moved note after error to reduce confusion when the pair appears in the middle of other errors. Closes #13279.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/guide.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index dc9608563e1..ab480745b68 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -895,13 +895,14 @@ fn add_one(x: int) -> int { We would get an error: ```{ignore,notrust} -note: consider removing this semicolon: - x + 1; - ^ error: not all control paths return a value fn add_one(x: int) -> int { x + 1; } + +note: consider removing this semicolon: + x + 1; + ^ ``` Remember our earlier discussions about semicolons and `()`? Our function claims |
