summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorSon <leson.phung@gmail.com>2017-02-02 22:24:50 +1100
committerSon <leson.phung@gmail.com>2017-02-02 22:24:50 +1100
commitc4cd4e19d976240443ef31968e7b763cf83d6fdb (patch)
treeaeddfc860eb2188570c1cd33e83f03d1d8f3879a /src/doc/reference.md
parenta7b65f15781e479d6d0cd98f0865cc3ec0dc03ac (diff)
downloadrust-c4cd4e19d976240443ef31968e7b763cf83d6fdb.tar.gz
rust-c4cd4e19d976240443ef31968e7b763cf83d6fdb.zip
Wrap 80 columns
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 32e0f9bbed8..6f2ce5fd8d1 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -2759,9 +2759,13 @@ Point3d {y: 0, z: 10, .. base};
 
 #### Struct field init shorthand
 
-When initializing a data structure (struct, enum, union) with named fields, allow writing `fieldname` as a shorthand for `fieldname: fieldname`. This allows a compact syntax for initialization, with less duplication.
+When initializing a data structure (struct, enum, union) with named fields,
+allow writing `fieldname` as a shorthand for `fieldname: fieldname`. This
+allows a compact syntax for initialization, with less duplication.
 
-In the initializer for a `struct` with named fields, a `union` with named fields, or an enum variant with named fields, accept an identifier `field` as a shorthand for `field: field`.
+In the initializer for a `struct` with named fields, a `union` with named
+fields, or an enum variant with named fields, accept an identifier `field` as a
+shorthand for `field: field`.
 
 Example: