Typo Fixed straightfoward to straightforward

This commit is contained in:
Mujeebullah Kalwar
2023-07-20 02:40:08 +05:00
parent 88191e18b2
commit 0f97d37440

View File

@ -4,7 +4,7 @@ All types which want to be printable must implement the `std::fmt` formatting tr
Automatic implementations are only provided for types such as in the `std` library. All others have to be manually implemented.
## Debug
The implementation of `Debug` is very straightfoward: All types can `derive` the `std::fmt::Debug` implementation. This is not true for `std::fmt::Display` which must be manually implemented.
The implementation of `Debug` is very straightforward: All types can `derive` the `std::fmt::Debug` implementation. This is not true for `std::fmt::Display` which must be manually implemented.
`{:?}` must be used to print out the type which has implemented the `Debug` trait.