Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the expected substring in ch11-01 #3534

Merged
merged 1 commit into from
Apr 17, 2024

Commits on Feb 7, 2023

  1. Fix the expected substring in ch11-01

    According to Listing 11-9, the substring expected to be included is
    "less than or equal to 100" (not "Guess value must be less than or equal
    to 100" as written in the book, which is strictly speaking not the
    expected substring - it's almost the entire panic message except the
    final ", got {}." part). See
    https://github.com/rust-lang/book/blob/f2a78f64b668f63f581203c6bac509903f7c00ee/listings/ch11-writing-automated-tests/listing-11-09/src/lib.rs#L31:
    
    ```rust
        #[should_panic(expected = "less than or equal to 100")]
    ```
    
    Also I think this was the only place in this chapter / in the book where
    I saw a string quotation in inline code additionally surrounded with
    single quotes `'`, so I removed them.
    generalmimon authored Feb 7, 2023
    Configuration menu
    Copy the full SHA
    bfdfb30 View commit details
    Browse the repository at this point in the history