1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-12-21 06:31:06 +02:00
Files
comprehensive-rust/src
Vinh Tran e157487e6e Fix typo in Matching Values section (#2832)
Given 

```
#[rustfmt::skip]
fn main() {
    let input = '1';
    match input {
        key if key.is_lowercase() => println!("Lowercase: {key}"),
        'q'                       => println!("Quitting"),
        'a' | 's' | 'w' | 'd'     => println!("Moving around"),
        '0'..='9'                 => println!("Number input"),
        _                         => println!("Something else"),
    }
}
```

the output will be

```
Number input
```

So in practice, failing the condition does result to the other arms if
the other arms are after that (if I'm reading this correctly).
2025-07-27 18:52:11 +02:00
..
2025-07-06 23:01:54 +00:00
2025-07-09 18:03:06 +02:00
2025-07-17 14:03:31 +12:00

Course Content

The files in this directory make up the content of the course. The files here can include third-party content from ../third_party/ as well.

When we publish a translation of the course, we git restore the src/ and third_party/ directories at the repository root back to the date listed in the POT-Creation-Date header of the translation. It is crucial, that all translatable content lives in those two directories. The other files (such as book.toml and theme/) are not restored and we always use the latest version of them.