From 11cb24bb2ac79bd7bec5d0d78d77f030ae01594b Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 19 Aug 2016 10:36:50 -0400 Subject: [PATCH] Fix a few more places where stdout text should be bash highlighting Fixes #139. --- src/ch06-01-option.md | 2 +- src/ch06-02-match.md | 2 +- src/chYY-YY-documentation.md | 2 +- src/chZZ-generics.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ch06-01-option.md b/src/ch06-01-option.md index 9e84b0d16..f24bc10f2 100644 --- a/src/ch06-01-option.md +++ b/src/ch06-01-option.md @@ -75,7 +75,7 @@ let sum = x + y; This will not compile. We get an error message like this: -```text +```bash error: the trait bound `i8: std::ops::Add>` is not satisfied [E0277] diff --git a/src/ch06-02-match.md b/src/ch06-02-match.md index 6e7787fb4..c63a85d29 100644 --- a/src/ch06-02-match.md +++ b/src/ch06-02-match.md @@ -228,7 +228,7 @@ fn plus_one(x: Option) -> Option { A bug! We didn't handle the `None` case. Luckily, it's a bug Rust knows how to catch. If we try to compile this code, we'll get an error: -```text +```bash error: non-exhaustive patterns: `None` not covered [E0004] match x { Some(i) => Some(i + 1), diff --git a/src/chYY-YY-documentation.md b/src/chYY-YY-documentation.md index 1adb89e9d..fa49b461f 100644 --- a/src/chYY-YY-documentation.md +++ b/src/chYY-YY-documentation.md @@ -36,7 +36,7 @@ example, a program with only this: Will give a compiler error: -```text +```bash src/main.rs:1:1: 1:27 error: expected item after doc comment src/main.rs:1 /// What am I documenting? ^~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/src/chZZ-generics.md b/src/chZZ-generics.md index eab064696..33649648b 100644 --- a/src/chZZ-generics.md +++ b/src/chZZ-generics.md @@ -169,7 +169,7 @@ fn foo(x: T) { We'll get an error: -```text +```bash error: the trait `core::fmt::Display` is not implemented for the type `T` [E0277] println!("x is: {}", x); ^