Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"Run this code" should be "compile this code" (ch18-03-pattern-syntax)

Fixes rust-lang#2625
  • Loading branch information
Tanja-4732 authored and joeljpresent committed Apr 13, 2021
1 parent 3836723 commit 181ab74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 181ab74

Please sign in to comment.