Rollup merge of #28485 - Wallacoloo:clarify-let-lhs, r=alexcrichton

In code like `let x = 5`, I am initially confused as to the meaning of "let doesn't take a name on the left hand side, it actually accepts a pattern." - I interpret that as the pattern being located as: `<pattern> let [...]`.

I think what is meant is that the name/pattern is on the left hand side *of the assignment*, rather than to the left of the *let* statement. This change clarifies that.
This commit is contained in:
Steve Klabnik 2015-09-19 11:15:48 -04:00
commit d557f4a60f

View File

@ -147,7 +147,7 @@ a few tricks up their sleeves.
For example, theyre [immutable][immutable] by default. Thats why our example
uses `mut`: it makes a binding mutable, rather than immutable. `let` doesnt
take a name on the left hand side, it actually accepts a
take a name on the left hand side of the assignment, it actually accepts a
[pattern][patterns]. Well use patterns later. Its easy enough
to use for now: