mirror of
https://github.com/rust-lang/book.git
synced 2026-12-01 16:36:11 -06:00
Fix #2625
"Run this code" should be "compile this code" (ch18-03-pattern-syntax) Fixes #2625
This commit is contained in:
@@ -344,7 +344,7 @@ warning because that could be a bug. But sometimes it’s useful to create a
|
||||
variable you won’t use yet, such as when you’re prototyping or just starting a
|
||||
project. In this situation, you can tell Rust not to warn you about the unused
|
||||
variable by starting the name of the variable with an underscore. In Listing
|
||||
18-20, we create two unused variables, but when we run this code, we should
|
||||
18-20, we create two unused variables, but when we compile this code, we should
|
||||
only get a warning about one of them.
|
||||
|
||||
<span class="filename">Filename: src/main.rs</span>
|
||||
|
||||
Reference in New Issue
Block a user