-
Notifications
You must be signed in to change notification settings - Fork 13.3k
minor: File::open --> File::create in rust book #25068
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- `FIle::open` is for opening a file in read-only mode - `FIle::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @steveklabnik Documentation only change: https://doc.rust-lang.org/book/error-handling.html |
@bors: r+ rollup |
📌 Commit 75a3e29 has been approved by |
Thanks! |
⌛ Testing commit 75a3e29 with merge b05ad9a... |
💔 Test failed - auto-linux-64-opt |
@bors: retry On Mon, May 4, 2015 at 4:55 AM, bors [email protected] wrote:
|
- `File::open` is for opening a file in read-only mode - `File::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
- `File::open` is for opening a file in read-only mode - `File::create` is for opening a file in write-only mode, which is what we want instead for this example to make sense
File::open
is for opening a file in read-only modeFile::create
is for opening a file in write-only mode, which is what we want instead for this example to make sense