Skip to content

Commit

Permalink
fix(info): Fix trailing newlines for hints
Browse files Browse the repository at this point in the history
  • Loading branch information
marisa committed Nov 11, 2019
1 parent 9bdb0a1 commit 795b6e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ a value based on its operand, and statements simply return a () type which behav
We want to return a value of `i32` type from the `square` function, but it is returning a `()` type...
They are not the same. There are two solutions:
1. Add a `return` ahead of `num * num;`
2. remove `;`, make it to be `num * num`
"""
2. remove `;`, make it to be `num * num`"""

# TEST 1

Expand Down Expand Up @@ -156,8 +155,7 @@ that you want to end up in the slice.
If you're curious why the right hand of the `==` comparison does not
have an ampersand for a reference since the left hand side is a
reference, take a look at the Deref coercions section of the book:
https://doc.rust-lang.org/book/ch15-02-deref.html
"""
https://doc.rust-lang.org/book/ch15-02-deref.html"""

[[exercises]]
name = "primitive_types5"
Expand Down

0 comments on commit 795b6e3

Please sign in to comment.