summaryrefslogtreecommitdiffhomepage
path: root/rust.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2016-08-02 13:55:53 -0400
committerGitHub <noreply@github.com>2016-08-02 13:55:53 -0400
commit97df073a834171c7261692982d74d03f27231939 (patch)
tree37f08fe748431296a6eff0a208e7db74a5840bac /rust.html.markdown
parent499870a7ac8c15cdea8f029173d7886053f64764 (diff)
parent4207b753bc31f1050b394a87cbe1e3c0a3fa1914 (diff)
Merge pull request #2269 from carlomilanesi/master
Translation to Italian of Rust tutorial
Diffstat (limited to 'rust.html.markdown')
-rw-r--r--rust.html.markdown5
1 files changed, 3 insertions, 2 deletions
diff --git a/rust.html.markdown b/rust.html.markdown
index 4aa9ca7c..f1b62ef4 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -88,9 +88,10 @@ fn main() {
let s: String = "hello world".to_string();
// A string slice – an immutable view into another string
- // This is basically an immutable pointer to a string – it doesn’t
+ // This is basically an immutable pair of pointers to a string – it doesn’t
// actually contain the contents of a string, just a pointer to
- // something that does (in this case, `s`)
+ // the begin and a pointer to the end of a string buffer,
+ // statically allocated or contained in another object (in this case, `s`)
let s_slice: &str = &s;
println!("{} {}", s, s_slice); // hello world hello world