Skip to content

Commit e0b7f42

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 6fc409e + 2ae8acc commit e0b7f42

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)