Skip to content

Commit

Permalink
Rollup merge of rust-lang#50624 - adevore:fs-write-str-example, r=ste…
Browse files Browse the repository at this point in the history
…veklabnik

fs::write: Add example writing a &str

This adds an example to the documentation for `fs::write` that demonstrates the use of the `AsRef<[u8]>` implementation for &str. Experienced users should already recognize the possibility from the type signature, but new users may not recognize the significance.
  • Loading branch information
kennytm authored May 13, 2018
2 parents 6fc409e + 2ae8acc commit e0b7f42
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit e0b7f42

Please sign in to comment.