about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-13 16:15:41 +0800
committerGitHub <noreply@github.com>2018-05-13 16:15:41 +0800
commite0b7f42b59987b2610d9136da2bcda1d290cdf52 (patch)
treef1f67de03d1ca6a3ffc9b4ed2b944b098ce9dd0c /src/rustllvm/RustWrapper.cpp
parent6fc409ed0938cd2f501642abcaa675977fa5035a (diff)
parent2ae8accd24bec0c4eadba7b02a0a2422b1f1247e (diff)
downloadrust-e0b7f42b59987b2610d9136da2bcda1d290cdf52.tar.gz
rust-e0b7f42b59987b2610d9136da2bcda1d290cdf52.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions