зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #15511 - Fix fmt::Display vs fmt::Debug URL (from r3c0d3x:patch-1); r=Wafflespeanut
<!-- Please describe your changes on the following line: -->
Fixed a Rust documentation link in [`HACKING_QUICKSTART.md`](44e808b5cf/docs/HACKING_QUICKSTART.md
)
---
The link to Rust's documentation comparing `fmt::Display` and `fmt::Debug` no longer points to the right section of the page.
- [x] These changes do not require tests because it's simply changing a URL in the documentation.
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Source-Repo: https://github.com/servo/servo
Source-Revision: eca8c4ed7384e98efcb15b8ef603f27650126fd5
--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 9451958c39f58bfc06666554d45dda1fa6b7d381
This commit is contained in:
Родитель
8f852214e1
Коммит
4609f2c8a8
|
@ -177,7 +177,7 @@ Use `RUST_BACKTRACE=1` to dump the backtrace when Servo panics.
|
|||
|
||||
### println!()
|
||||
|
||||
You will want to add your own logs. Luckily, many structures [implement the `fmt::Debug` trait](https://doc.rust-lang.org/std/fmt/#fmt::display-vs-fmt::debug), so adding:
|
||||
You will want to add your own logs. Luckily, many structures [implement the `fmt::Debug` trait](https://doc.rust-lang.org/std/fmt/#fmtdisplay-vs-fmtdebug), so adding:
|
||||
|
||||
``` rust
|
||||
println!("foobar: {:?}", foobar)
|
||||
|
|
Загрузка…
Ссылка в новой задаче