From: Peter Jaszkowiak
Date: Fri, 16 Oct 2020 04:48:57 +0000 (-0600)
Subject: Intra-doc links for std::io::buffered
X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fe6dfcd28a9cbb8080313433a825cdec7b6a78b3;p=rust.git
Intra-doc links for std::io::buffered
---
diff --git a/library/std/src/io/buffered/bufreader.rs b/library/std/src/io/buffered/bufreader.rs
index 8fe29f08a7b..777d376f991 100644
--- a/library/std/src/io/buffered/bufreader.rs
+++ b/library/std/src/io/buffered/bufreader.rs
@@ -21,7 +21,7 @@
/// unwrapping the `BufReader` with [`BufReader::into_inner`] can also cause
/// data loss.
///
-/// [`TcpStream::read`]: Read::read
+/// [`TcpStream::read`]: super::super::super::net::TcpStream::read
/// [`TcpStream`]: crate::net::TcpStream
///
/// # Examples
diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs
index 3ec272fea66..a1face6443a 100644
--- a/library/std/src/io/buffered/bufwriter.rs
+++ b/library/std/src/io/buffered/bufwriter.rs
@@ -59,9 +59,9 @@
/// together by the buffer and will all be written out in one system call when
/// the `stream` is flushed.
///
-/// [`TcpStream::write`]: Write::write
+/// [`TcpStream::write`]: super::super::super::net::TcpStream::write
/// [`TcpStream`]: crate::net::TcpStream
-/// [`flush`]: Write::flush
+/// [`flush`]: BufWriter::flush
#[stable(feature = "rust1", since = "1.0.0")]
pub struct BufWriter {
inner: Option,