]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/macros.rs
Fix a few links in the docs
[rust.git] / src / libcore / macros.rs
index 6e08abd34614386c41479764b91248ea788f23d0..d5b65d27a5a84244acc7ee168929b367bdccc55f 100644 (file)
@@ -42,12 +42,13 @@ macro_rules! panic {
 /// Unsafe code relies on `assert!` to enforce run-time invariants that, if
 /// violated could lead to unsafety.
 ///
-/// Other use-cases of `assert!` include
-/// [testing](https://doc.rust-lang.org/book/testing.html) and enforcing
-/// run-time invariants in safe code (whose violation cannot result in unsafety).
+/// Other use-cases of `assert!` include [testing] and enforcing run-time
+/// invariants in safe code (whose violation cannot result in unsafety).
 ///
 /// This macro has a second version, where a custom panic message can be provided.
 ///
+/// [testing]: ../book/testing.html
+///
 /// # Examples
 ///
 /// ```