Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upExplain shadowing `if let Some(key) = key` destructuring in "Hardware Interrupts" #572
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should add a short explanation of how shadowing works in this situation to help Rust beginners.
Reported in #480 (comment).
The pattern is used in https://os.phil-opp.com/hardware-interrupts/#interpreting-the-scancodes.