Merge pull request #1031 from chenl/patch-11

Update ch15-02-deref.md
This commit is contained in:
Carol (Nichols || Goulding) 2017-12-04 19:12:35 -05:00 committed by GitHub
commit 30c6b582ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -81,10 +81,10 @@ error:
```text
error[E0277]: the trait bound `{integer}: std::cmp::PartialEq<&{integer}>` is
not satisfied
--> <assert_eq macros>:5:19
--> src/main.rs:6:5
|
5 | if ! ( * left_val == * right_val ) {
| ^^ can't compare `{integer}` with `&{integer}`
6 | assert_eq!(5, y);
| ^^^^^^^^^^^^^^^^^ can't compare `{integer}` with `&{integer}`
|
= help: the trait `std::cmp::PartialEq<&{integer}>` is not implemented for
`{integer}`