mirror of https://github.com/rust-lang/book
commit
ca38b939e4
|
@ -45,7 +45,7 @@ The `Debug` trait allows you to print instances of a type for debugging
|
|||
purposes, so you and other programmers using your type can inspect an instance
|
||||
at a particular point in a program’s execution.
|
||||
|
||||
The `Debug` trait is required, for example, in use of the `assert_eq!` macro.
|
||||
The `Debug` trait is required, for example, in using the `assert_eq!` macro.
|
||||
This macro prints the values of instances given as arguments if the equality
|
||||
assertion fails so programmers can see why the two instances weren’t equal.
|
||||
|
||||
|
|
Loading…
Reference in New Issue