File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -898,7 +898,7 @@ pub trait Read {
898
898
/// use std::fs::File;
899
899
///
900
900
/// fn main() -> io::Result<()> {
901
- /// let mut f = File::open("foo.txt")?;
901
+ /// let f = File::open("foo.txt")?;
902
902
///
903
903
/// for byte in f.bytes() {
904
904
/// println!("{}", byte.unwrap());
@@ -932,8 +932,8 @@ pub trait Read {
932
932
/// use std::fs::File;
933
933
///
934
934
/// fn main() -> io::Result<()> {
935
- /// let mut f1 = File::open("foo.txt")?;
936
- /// let mut f2 = File::open("bar.txt")?;
935
+ /// let f1 = File::open("foo.txt")?;
936
+ /// let f2 = File::open("bar.txt")?;
937
937
///
938
938
/// let mut handle = f1.chain(f2);
939
939
/// let mut buffer = String::new();
@@ -973,7 +973,7 @@ pub trait Read {
973
973
/// use std::fs::File;
974
974
///
975
975
/// fn main() -> io::Result<()> {
976
- /// let mut f = File::open("foo.txt")?;
976
+ /// let f = File::open("foo.txt")?;
977
977
/// let mut buffer = [0; 5];
978
978
///
979
979
/// // read at most five bytes
You can’t perform that action at this time.
0 commit comments