From d6f8271602e15bf912f035fbe10bb98bcc83abd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Ochagav=C3=ADa?= Date: Sat, 5 Jul 2014 18:12:46 +0200 Subject: [PATCH] Improved example in the Guide Fixes https://github.com/rust-lang/rust/issues/15452 --- src/doc/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index dc9608563e176..46b4036cdcc4f 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -737,10 +737,10 @@ let x = (let y = 5i); // found `let` in ident position The compiler is telling us here that it was expecting to see the beginning of an expression, and a `let` can only begin a statement, not an expression. -However, re-assigning to a mutable binding is an expression: +However, assigning to a variable binding is an expression: ```{rust} -let mut x = 0i; +let x; let y = x = 5i; ```