]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/guide.md
rollup merge of #16839 : treeman/issue-15358
[rust.git] / src / doc / guide.md
index a22e69feb07403e167b0e6b34536aa82e9b4a448..4c8dd86c61618933db74ca04c43fb1751eb7b12c 100644 (file)
@@ -630,7 +630,7 @@ In Rust, however, using `let` to introduce a binding is _not_ an expression. The
 following will produce a compile-time error:
 
 ```{ignore}
-let x = (let y = 5i); // found `let` in ident position
+let x = (let y = 5i); // expected identifier, found keyword `let`
 ```
 
 The compiler is telling us here that it was expecting to see the beginning of