@@ -2526,7 +2526,7 @@ The currently implemented features of the reference compiler are:
25262526
25272527* ` plugin_registrar ` - Indicates that a crate has [ compiler plugins] [ plugin ] that it
25282528 wants to load. As with ` phase ` , the implementation is
2529- in need of a overhaul, and it is not clear that plugins
2529+ in need of an overhaul, and it is not clear that plugins
25302530 defined using this will continue to work.
25312531
25322532* ` quote ` - Allows use of the ` quote_*! ` family of macros, which are
@@ -2583,7 +2583,7 @@ there isn't a parser error first). The directive in this case is no longer
25832583necessary, and it's likely that existing code will break if the feature isn't
25842584removed.
25852585
2586- If a unknown feature is found in a directive, it results in a compiler error.
2586+ If an unknown feature is found in a directive, it results in a compiler error.
25872587An unknown feature is one which has never been recognized by the compiler.
25882588
25892589# Statements and expressions
@@ -2685,7 +2685,7 @@ When an lvalue is evaluated in an _lvalue context_, it denotes a memory
26852685location; when evaluated in an _ rvalue context_ , it denotes the value held _ in_
26862686that memory location.
26872687
2688- When an rvalue is used in lvalue context, a temporary un-named lvalue is
2688+ When an rvalue is used in an lvalue context, a temporary un-named lvalue is
26892689created and used instead. A temporary's lifetime equals the largest lifetime
26902690of any reference that points to it.
26912691
@@ -2833,7 +2833,7 @@ foo().x;
28332833```
28342834
28352835A field access is an [ lvalue] ( #lvalues,-rvalues-and-temporaries ) referring to
2836- the value of that field. When the type providing the field inherits mutabilty ,
2836+ the value of that field. When the type providing the field inherits mutability ,
28372837it can be [ assigned] ( #assignment-expressions ) to.
28382838
28392839Also, if the type of the expression to the left of the dot is a pointer, it is
@@ -3108,11 +3108,10 @@ then the expression completes.
31083108Some examples of call expressions:
31093109
31103110```
3111- # use std::from_str::FromStr;
31123111# fn add(x: int, y: int) -> int { 0 }
31133112
31143113let x: int = add(1, 2);
3115- let pi: Option<f32> = FromStr:: from_str("3.14");
3114+ let pi: Option<f32> = from_str("3.14");
31163115```
31173116
31183117### Lambda expressions
@@ -3321,7 +3320,7 @@ between `_` and `..` is that the pattern `C(_)` is only type-correct if `C` has
33213320exactly one argument, while the pattern ` C(..) ` is type-correct for any enum
33223321variant ` C ` , regardless of how many arguments ` C ` has.
33233322
3324- Used inside a array pattern, ` .. ` stands for any number of elements, when the
3323+ Used inside an array pattern, ` .. ` stands for any number of elements, when the
33253324` advanced_slice_patterns ` feature gate is turned on. This wildcard can be used
33263325at most once for a given array, which implies that it cannot be used to
33273326specifically match elements that are at an unknown distance from both ends of a
@@ -3584,7 +3583,7 @@ is not a surrogate), represented as a 32-bit unsigned word in the 0x0000 to
358435830xD7FF or 0xE000 to 0x10FFFF range. A ` [char] ` array is effectively an UCS-4 /
35853584UTF-32 string.
35863585
3587- A value of type ` str ` is a Unicode string, represented as a array of 8-bit
3586+ A value of type ` str ` is a Unicode string, represented as an array of 8-bit
35883587unsigned bytes holding a sequence of UTF-8 codepoints. Since ` str ` is of
35893588unknown size, it is not a _ first class_ type, but can only be instantiated
35903589through a pointer type, such as ` &str ` or ` String ` .
0 commit comments