Skip to content

Commit

Permalink
Rollup merge of rust-lang#78006 - pitaj:master, r=jyn514
Browse files Browse the repository at this point in the history
Use Intra-doc links for std::io::buffered

Helps with rust-lang#75080. I used the implicit link style for intrinsics, as that was what `minnumf32` and others already had.

`@rustbot` modify labels: T-doc, A-intra-doc-links

r? `@jyn514`
  • Loading branch information
JohnTitor authored Nov 6, 2020
2 parents 69fe16a + 8d48e3b commit 0fce4ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion library/std/src/io/buffered/bufreader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ use crate::io::{self, BufRead, Initializer, IoSliceMut, Read, Seek, SeekFrom, DE
/// unwrapping the `BufReader<R>` with [`BufReader::into_inner`] can also cause
/// data loss.
///
/// [`TcpStream::read`]: Read::read
// HACK(#78696): can't use `crate` for associated items
/// [`TcpStream::read`]: super::super::super::net::TcpStream::read
/// [`TcpStream`]: crate::net::TcpStream
///
/// # Examples
Expand Down
5 changes: 3 additions & 2 deletions library/std/src/io/buffered/bufwriter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ use crate::io::{
/// together by the buffer and will all be written out in one system call when
/// the `stream` is flushed.
///
/// [`TcpStream::write`]: Write::write
// HACK(#78696): can't use `crate` for associated items
/// [`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<W: Write> {
inner: Option<W>,
Expand Down

0 comments on commit 0fce4ed

Please sign in to comment.