@@ -400,11 +400,11 @@ An _integer literal_ has one of four forms:
400
400
* A _ decimal literal_ starts with a * decimal digit* and continues with any
401
401
mixture of * decimal digits* and _ underscores_ .
402
402
* A _ hex literal_ starts with the character sequence ` U+0030 ` ` U+0078 `
403
- (` 0x ` ) and continues as any mixture hex digits and underscores.
403
+ (` 0x ` ) and continues as any mixture of hex digits and underscores.
404
404
* An _ octal literal_ starts with the character sequence ` U+0030 ` ` U+006F `
405
- (` 0o ` ) and continues as any mixture octal digits and underscores.
405
+ (` 0o ` ) and continues as any mixture of octal digits and underscores.
406
406
* A _ binary literal_ starts with the character sequence ` U+0030 ` ` U+0062 `
407
- (` 0b ` ) and continues as any mixture binary digits and underscores.
407
+ (` 0b ` ) and continues as any mixture of binary digits and underscores.
408
408
409
409
An integer literal may be followed (immediately, without any spaces) by an
410
410
_ integer suffix_ , which changes the type of the literal. There are two kinds of
@@ -944,10 +944,10 @@ An example of `use` declarations:
944
944
```
945
945
use std::iter::range_step;
946
946
use std::option::{Some, None};
947
- use std::collections::hashmap ::{mod, HashMap};
947
+ use std::collections::hash_map ::{mod, HashMap};
948
948
949
- # fn foo<T>(_: T){}
950
- # fn bar(map : HashMap<String, uint>, set: hashmap::HashSet <String>){}
949
+ fn foo<T>(_: T){}
950
+ fn bar(map1 : HashMap<String, uint>, map2: hash_map::HashMap <String, uint >){}
951
951
952
952
fn main() {
953
953
// Equivalent to 'std::iter::range_step(0u, 10u, 2u);'
@@ -957,10 +957,10 @@ fn main() {
957
957
// std::option::None]);'
958
958
foo(vec![Some(1.0f64), None]);
959
959
960
- // Both `hash ` and `HashMap` are in scope.
961
- let map = HashMap::new();
962
- let set = hashmap::HashSet ::new();
963
- bar(map, set );
960
+ // Both `hash_map ` and `HashMap` are in scope.
961
+ let map1 = HashMap::new();
962
+ let map2 = hash_map::HashMap ::new();
963
+ bar(map1, map2 );
964
964
}
965
965
```
966
966
@@ -2100,15 +2100,15 @@ plugins](guide-plugin.html#lint-plugins) can provide additional lint checks.
2100
2100
``` {.ignore}
2101
2101
mod m1 {
2102
2102
// Missing documentation is ignored here
2103
- #[allow(missing_doc )]
2103
+ #[allow(missing_docs )]
2104
2104
pub fn undocumented_one() -> int { 1 }
2105
2105
2106
2106
// Missing documentation signals a warning here
2107
- #[warn(missing_doc )]
2107
+ #[warn(missing_docs )]
2108
2108
pub fn undocumented_too() -> int { 2 }
2109
2109
2110
2110
// Missing documentation signals an error here
2111
- #[deny(missing_doc )]
2111
+ #[deny(missing_docs )]
2112
2112
pub fn undocumented_end() -> int { 3 }
2113
2113
}
2114
2114
```
@@ -2117,16 +2117,16 @@ This example shows how one can use `allow` and `warn` to toggle a particular
2117
2117
check on and off.
2118
2118
2119
2119
``` {.ignore}
2120
- #[warn(missing_doc )]
2120
+ #[warn(missing_docs )]
2121
2121
mod m2{
2122
- #[allow(missing_doc )]
2122
+ #[allow(missing_docs )]
2123
2123
mod nested {
2124
2124
// Missing documentation is ignored here
2125
2125
pub fn undocumented_one() -> int { 1 }
2126
2126
2127
2127
// Missing documentation signals a warning here,
2128
2128
// despite the allow above.
2129
- #[warn(missing_doc )]
2129
+ #[warn(missing_docs )]
2130
2130
pub fn undocumented_two() -> int { 2 }
2131
2131
}
2132
2132
@@ -2139,10 +2139,10 @@ This example shows how one can use `forbid` to disallow uses of `allow` for
2139
2139
that lint check.
2140
2140
2141
2141
``` {.ignore}
2142
- #[forbid(missing_doc )]
2142
+ #[forbid(missing_docs )]
2143
2143
mod m3 {
2144
2144
// Attempting to toggle warning signals an error here
2145
- #[allow(missing_doc )]
2145
+ #[allow(missing_docs )]
2146
2146
/// Returns 2.
2147
2147
pub fn undocumented_too() -> int { 2 }
2148
2148
}
@@ -4096,7 +4096,7 @@ cause transitions between the states. The lifecycle states of a task are:
4096
4096
4097
4097
* running
4098
4098
* blocked
4099
- * panicked
4099
+ * panicked
4100
4100
* dead
4101
4101
4102
4102
A task begins its lifecycle &mdash ; once it has been spawned &mdash ; in the
0 commit comments