Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
doc
/
book
/
listings
/
ch08-common-collections
/
listing-08-12
/
src
/
main.rs
blob: d9e5e768ab1122f8567f7f181b1ab4d685180886 [
file
] [
log
] [
blame
]
fn
main
()
{
// ANCHOR: here
let
data
=
"initial contents"
;
let
s
=
data
.
to_string
();
// the method also works on a literal directly:
let
s
=
"initial contents"
.
to_string
();
// ANCHOR_END: here
}