summaryrefslogtreecommitdiffhomepage
path: root/rust.html.markdown
diff options
context:
space:
mode:
authorGeoff Liu <g@geoffliu.me>2015-08-30 14:22:11 -0600
committerGeoff Liu <g@geoffliu.me>2015-08-30 14:22:11 -0600
commiteb7e58d5fc649ed2713c7685539bd5edcd9e8ade (patch)
tree72a9fe5106bed0735089b5c7a2b22540f7ebb3a7 /rust.html.markdown
parent1d1def16a5d7925bb8f7fba7dc49182e33359e85 (diff)
parentb124fd58df56a5e1ee9925481fbde1f22ccfb386 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'rust.html.markdown')
-rw-r--r--rust.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust.html.markdown b/rust.html.markdown
index 17f7dc90..dd03acdd 100644
--- a/rust.html.markdown
+++ b/rust.html.markdown
@@ -5,7 +5,7 @@ contributors:
filename: learnrust.rs
---
-Rust is an in-development programming language developed by Mozilla Research.
+Rust is a programming language developed by Mozilla Research.
Rust combines low-level control over performance with high-level convenience and
safety guarantees.
@@ -84,7 +84,7 @@ fn main() {
// This is basically an immutable pointer to a string – it doesn’t
// actually contain the contents of a string, just a pointer to
// something that does (in this case, `s`)
- let s_slice: &str = &*s;
+ let s_slice: &str = &s;
println!("{} {}", s, s_slice); // hello world hello world
@@ -99,7 +99,7 @@ fn main() {
// A slice – an immutable view into a vector or array
// This is much like a string slice, but for vectors
- let slice: &[i32] = &*vector;
+ let slice: &[i32] = &vector;
// Use `{:?}` to print something debug-style
println!("{:?} {:?}", vector, slice); // [1, 2, 3, 4, 5] [1, 2, 3, 4, 5]