From c7829980dbe9ad4282b4f809ab635508e75b017b Mon Sep 17 00:00:00 2001 From: r00ster Date: Mon, 15 Mar 2021 20:43:27 +0100 Subject: [PATCH 1/3] Add missing code highlighting --- src/expression.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expression.md b/src/expression.md index 467bc10646..27a278d027 100644 --- a/src/expression.md +++ b/src/expression.md @@ -2,7 +2,7 @@ A Rust program is (mostly) made up of a series of statements: -``` +```rust,editable fn main() { // statement // statement @@ -13,7 +13,7 @@ fn main() { There are a few kinds of statements in Rust. The most common two are declaring a variable binding, and using a `;` with an expression: -``` +```rust,editable fn main() { // variable binding let x = 5; From ad142f295df89bb399eeefc73903215540b7466b Mon Sep 17 00:00:00 2001 From: r00ster Date: Mon, 15 Mar 2021 20:50:26 +0100 Subject: [PATCH 2/3] Correct code highlighting --- src/primitives/tuples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/tuples.md b/src/primitives/tuples.md index 7e29ef22c7..82f4083fc9 100644 --- a/src/primitives/tuples.md +++ b/src/primitives/tuples.md @@ -64,7 +64,7 @@ fn main() { ### Activity - 1. *Recap*: Add the `fmt::Display` trait to the Matrix `struct` in the above example, + 1. *Recap*: Add the `fmt::Display` trait to the `Matrix` struct in the above example, so that if you switch from printing the debug format `{:?}` to the display format `{}`, you see the following output: From 9540aa2bd4e862956917260930ae8a2a053026ba Mon Sep 17 00:00:00 2001 From: r00ster Date: Mon, 15 Mar 2021 20:53:25 +0100 Subject: [PATCH 3/3] Correct code highlighting --- src/hello/print/print_display.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hello/print/print_display.md b/src/hello/print/print_display.md index 1ff31f27ac..064fe6ded5 100644 --- a/src/hello/print/print_display.md +++ b/src/hello/print/print_display.md @@ -108,7 +108,7 @@ each requires its own implementation. This is detailed further in ### Activity After checking the output of the above example, use the `Point2D` struct as a -guide to add a Complex struct to the example. When printed in the same +guide to add a `Complex` struct to the example. When printed in the same way, the output should be: ```txt