Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Jul 14, 2019
1 parent c8d9cd9 commit f2a6a4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/diagnostics.rs
Expand Up @@ -800,7 +800,7 @@ impl<'a> Parser<'a> {
.span_label(
extern_sp,
"`extern` blocks define existing foreign functions and `fn`s \
inside of them can't have a body")
inside of them cannot have a body")
.help("you might have meant to write a function accessible through ffi, \
which can be done by writing `extern fn` outside of the \
`extern` block")
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/extern/extern-ffi-fn-with-body.stderr
Expand Up @@ -2,7 +2,7 @@ error: incorrect `fn` inside `extern` block
--> $DIR/extern-ffi-fn-with-body.rs:2:8
|
LL | extern "C" {
| ------ `extern` blocks define existing foreign functions and `fn`s inside of them can't have a body
| ------ `extern` blocks define existing foreign functions and `fn`s inside of them cannot have a body
LL | fn foo() -> i32 {
| ________^^^__________-
| | |
Expand Down

0 comments on commit f2a6a4e

Please sign in to comment.