We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::io::copy
1 parent f60bc3a commit c9099ffCopy full SHA for c9099ff
src/libstd/io/util.rs
@@ -40,9 +40,10 @@ use mem;
40
///
41
/// io::copy(&mut reader, &mut writer)?;
42
43
-/// assert_eq!(reader, &writer[..]);
+/// assert_eq!(&b"hello"[..], &writer[..]);
44
/// # Ok(())
45
/// # }
46
+/// # foo().unwrap();
47
/// ```
48
#[stable(feature = "rust1", since = "1.0.0")]
49
pub fn copy<R: ?Sized, W: ?Sized>(reader: &mut R, writer: &mut W) -> io::Result<u64>
0 commit comments