Skip to content

Commit d2e4c95

Browse files
committed
Fix unnecessary blank line in "Assertions" section of Chapter 11
1 parent fc01669 commit d2e4c95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

en/src/Chapter-11/11.2/11.2._Assertions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ mod tests {
223223
}
224224
```
225225
Now 4 and 5 are not equal, so changing the `assert_eq!` in the test function to `assert_ne!` will make the test pass.
226-
```
226+
227227
The `add_two` function adds 2 to its argument. The test function `it_adds_two` calls `add_two`; since 2 + 2 = 4, the expected value of `add_two(2)` is 4, so you just put 4 and the function call into the macro. In Rust, the expected value and the function call can actually be swapped. Some languages require a specific order, but Rust does not. The value on the left side (the first argument) is simply called the left value, and the other is called the right value.
228228

229229
Output:

0 commit comments

Comments
 (0)