about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-04 13:29:32 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-04 15:47:04 -0700
commit200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc (patch)
treed2a2e790b95f73e30320d1e49b0566423ecb17a1 /doc
parentef880f22450c4f7e455f431ff4603f90d443b545 (diff)
downloadrust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.tar.gz
rust-200959d7cef647b34e1d7cf7f4ed2c28b65fc7dc.zip
Remove 'with'
Diffstat (limited to 'doc')
-rw-r--r--doc/rust.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 4a654703404..3f368a6c06e 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -1595,9 +1595,9 @@ The order of the fields in a record expression is significant, and
 determines the type of the resulting value. `{a: u8, b: u8}` and `{b:
 u8, a: u8}` are two different fields.
 
-A record expression can terminate with the word `with` followed by an
+A record expression can terminate with the syntax `..` followed by an
 expression to denote a functional update. The expression following
-`with` (the base) must be of a record type that includes at least all the
+`..` (the base) must be of a record type that includes at least all the
 fields mentioned in the record expression. A new record will be
 created, of the same type as the base expression, with the given
 values for the fields that were explicitly specified, and the values
@@ -1606,7 +1606,7 @@ such a record expression is not significant.
 
 ~~~~
 let base = {x: 1, y: 2, z: 3};
-{y: 0, z: 10 with base};
+{y: 0, z: 10, .. base};
 ~~~~
 
 ### Field expressions