Skip to content

book: ch03-01(shadowing): Clarify RHS evaluation order#4764

Open
edmundlod wants to merge 1 commit into
rust-lang:mainfrom
edmundlod:patch-1
Open

book: ch03-01(shadowing): Clarify RHS evaluation order#4764
edmundlod wants to merge 1 commit into
rust-lang:mainfrom
edmundlod:patch-1

Conversation

@edmundlod

Copy link
Copy Markdown

Explicitly state that the right-hand side of a shadowing let binding is evaluated before the new variable comes into existence. The original text implied this by saying "taking the original value", but did not make the mechanism clear, which might be confusing.

Explicitly state that the right-hand side of a shadowing
let binding is evaluated before the new variable comes into
existence. The original text implied this by saying "taking
the original value", but did not make the mechanism clear,
which might be confusing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant