about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2022-12-03 12:51:28 +0900
committerGitHub <noreply@github.com>2022-12-03 12:51:28 +0900
commit019795b162901ea50af357b04a2a5eab325f4bfb (patch)
tree25948e2d533b45ea5e7c44d8b8b061527375cbf7
parent9f3ccd4bf642d9c55582bd643ec33b8a726272d6 (diff)
parentd777c84603ce41d21e3d3a73521e0f9f7d3063be (diff)
downloadrust-019795b162901ea50af357b04a2a5eab325f4bfb.tar.gz
rust-019795b162901ea50af357b04a2a5eab325f4bfb.zip
Rollup merge of #105100 - jhpratt:fix-docs, r=JohnTitor
Add missing intra-doc link

Trivial change. This makes the plain text into inline code and makes it a link.

`@rustbot` label +A-docs
-rw-r--r--library/std/src/fs.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index 0660e03c1a8..f357d505fe8 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -510,8 +510,9 @@ impl File {
     /// # Errors
     ///
     /// This function will return an error if the file is not opened for writing.
-    /// Also, std::io::ErrorKind::InvalidInput will be returned if the desired
-    /// length would cause an overflow due to the implementation specifics.
+    /// Also, [`std::io::ErrorKind::InvalidInput`](crate::io::ErrorKind::InvalidInput)
+    /// will be returned if the desired length would cause an overflow due to
+    /// the implementation specifics.
     ///
     /// # Examples
     ///