Skip to content

Commit 717df18

Browse files
authored
Merge pull request #1427 from r00ster91/patch-1
Fix code highlighting in some places
2 parents c25979a + 9540aa2 commit 717df18

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/expression.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Rust program is (mostly) made up of a series of statements:
44

5-
```
5+
```rust,editable
66
fn main() {
77
// statement
88
// statement
@@ -13,7 +13,7 @@ fn main() {
1313
There are a few kinds of statements in Rust. The most common two are declaring
1414
a variable binding, and using a `;` with an expression:
1515

16-
```
16+
```rust,editable
1717
fn main() {
1818
// variable binding
1919
let x = 5;

src/hello/print/print_display.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ each requires its own implementation. This is detailed further in
108108
### Activity
109109

110110
After checking the output of the above example, use the `Point2D` struct as a
111-
guide to add a Complex struct to the example. When printed in the same
111+
guide to add a `Complex` struct to the example. When printed in the same
112112
way, the output should be:
113113

114114
```txt

src/primitives/tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn main() {
6464

6565
### Activity
6666

67-
1. *Recap*: Add the `fmt::Display` trait to the Matrix `struct` in the above example,
67+
1. *Recap*: Add the `fmt::Display` trait to the `Matrix` struct in the above example,
6868
so that if you switch from printing the debug format `{:?}` to the display
6969
format `{}`, you see the following output:
7070

0 commit comments

Comments
 (0)