Rollup merge of #50624 - adevore:fs-write-str-example, r=steveklabnik

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.
This commit is contained in:
kennytm 2018-05-13 16:15:41 +08:00 committed by GitHub
commit e0b7f42b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

Diff content is not available