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 code highlighting in some places #1427

Merged
merged 3 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

```
```rust,editable
fn main() {
// statement
// statement
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/hello/print/print_display.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/primitives/tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down