From fbde6631aa84e15eabf10fc73926cc9a975766e4 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 25 Nov 2016 15:24:46 -0500 Subject: [PATCH] Change some lingering uses of bash syntax highlighting to text --- src/ch10-01-syntax.md | 4 ++-- src/ch10-02-traits.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ch10-01-syntax.md b/src/ch10-01-syntax.md index 2f7085698..ea097b951 100644 --- a/src/ch10-01-syntax.md +++ b/src/ch10-01-syntax.md @@ -235,7 +235,7 @@ let p = Point { x: 5, y: 20.0 }; results in a compile-time error that indicates the type of `y` must match the type of `x`: -```bash +```text error[E0308]: mismatched types | 7 | let p = Point { x: 5, y: 20.0 }; @@ -352,7 +352,7 @@ Listing 10-3: A `show_anything` function definition that does not yet compile Compiling this definition results in an error: -```bash +```text error[E0277]: the trait bound `T: std::fmt::Display` is not satisfied --> :3:37 | diff --git a/src/ch10-02-traits.md b/src/ch10-02-traits.md index c49bd5ecd..51d28ecbb 100644 --- a/src/ch10-02-traits.md +++ b/src/ch10-02-traits.md @@ -188,7 +188,7 @@ If we implement the `Printable` trait on other types, we can use them with the which does *not* implement the `Printable` trait, we get a compile-time error that looks like this: -```bash +```text error[E0277]: the trait bound `{integer}: Printable` is not satisfied | 29 | print_anything(3); @@ -251,7 +251,7 @@ When trait bounds start getting complicated, there is another syntax that's a bit cleaner: `where`. And in fact, the error we got when we ran the code from Listing 10-3 referred to it: -```bash +```text help: consider adding a `where T: std::fmt::Display` bound ```