about summary refs log tree commit diff
diff options
context:
space:
mode:
authornekename <63245705+nekename@users.noreply.github.com>2025-06-08 18:37:39 +0100
committerGitHub <noreply@github.com>2025-06-08 18:37:39 +0100
commit982abc48b3d8bbe003bc042b8ac0537e3d0e90ff (patch)
tree817e501c7c4ee023209fda081431dee8b57c70c5
parent9e7782b809383d7c9293d71be9334d4790b0915e (diff)
downloadrust-982abc48b3d8bbe003bc042b8ac0537e3d0e90ff.tar.gz
rust-982abc48b3d8bbe003bc042b8ac0537e3d0e90ff.zip
docs: make unbuffered_bytes docs more consistent
-rw-r--r--clippy_lints/src/methods/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 347960e0003..f2dabdd3438 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -4426,7 +4426,7 @@ declare_clippy_lint! {
     /// ```no_run
     /// use std::io::{BufReader, Read};
     /// use std::fs::File;
-    /// let file = BufReader::new(std::fs::File::open("./bytes.txt").unwrap());
+    /// let file = BufReader::new(File::open("./bytes.txt").unwrap());
     /// file.bytes();
     /// ```
     #[clippy::version = "1.87.0"]