about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-05 01:56:25 +0000
committerbors <bors@rust-lang.org>2021-09-05 01:56:25 +0000
commit0961e688fda35a664b5869dcfe1295b00538c7ae (patch)
treef87403aad47587b526655e97500d342ea78e6250 /library/core/src/array
parent3baa466444fcaa7e25f0578431f4ddeba0dc4a1b (diff)
parent7c32b58df24fe98dd3529d344fec6b1ad1631b63 (diff)
downloadrust-0961e688fda35a664b5869dcfe1295b00538c7ae.tar.gz
rust-0961e688fda35a664b5869dcfe1295b00538c7ae.zip
Auto merge of #88469 - patrick-gu:master, r=dtolnay
Add links in docs for some primitive types

This pull request adds additional links in existing documentation of some of the primitive types.

Where items are linked only once, I have used the `[link](destination)` format. For items in `std`, I have linked directly to the HTML, since although the primitives are in `core`, they are not displayed on `core` documentation. I was unsure of what length I should keep lines of documentation to, so I tried to keep them within reason.

Additionally, I have avoided excessively linking to keywords like `self` when they are not relevant to the documentation. I can add these links if it would be an improvement.

I hope this can improve Rust. Please let me know if there's anything I did wrong!
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 70cccd31b92..8c33a43ab33 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -396,7 +396,7 @@ impl<T, const N: usize> [T; N] {
     ///
     /// This method is particularly useful if combined with other methods, like
     /// [`map`](#method.map). This way, you can avoid moving the original
-    /// array if its elements are not `Copy`.
+    /// array if its elements are not [`Copy`].
     ///
     /// ```
     /// #![feature(array_methods)]