mirror of
https://github.com/rust-lang/book.git
synced 2026-09-15 05:29:45 -04:00
Revert confusion about hashed out code
This commit is contained in:
@@ -40,6 +40,10 @@ from the text that contain the query. Listing 12-15 shows this test:
|
||||
<span class="filename">Filename: src/lib.rs</span>
|
||||
|
||||
```rust
|
||||
# fn search<'a>(query: &str, contents: &'a str) -> Vec<&'a str> {
|
||||
# vec![]
|
||||
# }
|
||||
#
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user