Skip to content

Commit e2fcb92

Browse files
committed
Fix docs to use std instead of core.
When I submitted #6748 yesterday, I used the old name.
1 parent d577eaf commit e2fcb92

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/libstd/bool.rs

+20-20
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ use from_str::FromStr;
4444
*
4545
* # Examples
4646
* ~~~
47-
* rusti> core::bool::not(true)
47+
* rusti> std::bool::not(true)
4848
* false
4949
* ~~~
50-
* rusti> core::bool::not(false)
50+
* rusti> std::bool::not(false)
5151
* true
5252
* ~~~
5353
*/
@@ -58,10 +58,10 @@ pub fn not(v: bool) -> bool { !v }
5858
*
5959
* # Examples
6060
* ~~~
61-
* rusti> core::bool::and(true, false)
61+
* rusti> std::bool::and(true, false)
6262
* false
6363
* ~~~
64-
* rusti> core::bool::and(true, true)
64+
* rusti> std::bool::and(true, true)
6565
* true
6666
* ~~~
6767
*/
@@ -72,10 +72,10 @@ pub fn and(a: bool, b: bool) -> bool { a && b }
7272
*
7373
* # Examples
7474
* ~~~
75-
* rusti> core::bool::or(true, false)
75+
* rusti> std::bool::or(true, false)
7676
* true
7777
* ~~~
78-
* rusti> core::bool::or(false, false)
78+
* rusti> std::bool::or(false, false)
7979
* false
8080
* ~~~
8181
*/
@@ -88,10 +88,10 @@ pub fn or(a: bool, b: bool) -> bool { a || b }
8888
*
8989
* # Examples
9090
* ~~~
91-
* rusti> core::bool::xor(true, false)
91+
* rusti> std::bool::xor(true, false)
9292
* true
9393
* ~~~
94-
* rusti> core::bool::xor(true, true)
94+
* rusti> std::bool::xor(true, true)
9595
* false
9696
* ~~~
9797
*/
@@ -106,10 +106,10 @@ pub fn xor(a: bool, b: bool) -> bool { (a && !b) || (!a && b) }
106106
*
107107
* # Examples
108108
* ~~~
109-
* rusti> core::bool::implies(true, true)
109+
* rusti> std::bool::implies(true, true)
110110
* true
111111
* ~~~
112-
* rusti> core::bool::implies(true, false)
112+
* rusti> std::bool::implies(true, false)
113113
* false
114114
* ~~~
115115
*/
@@ -122,10 +122,10 @@ pub fn implies(a: bool, b: bool) -> bool { !a || b }
122122
*
123123
* # Examples
124124
* ~~~
125-
* rusti> core::bool::eq(false, true)
125+
* rusti> std::bool::eq(false, true)
126126
* false
127127
* ~~~
128-
* rusti> core::bool::eq(false, false)
128+
* rusti> std::bool::eq(false, false)
129129
* true
130130
* ~~~
131131
*/
@@ -138,10 +138,10 @@ pub fn eq(a: bool, b: bool) -> bool { a == b }
138138
*
139139
* # Examples
140140
* ~~~
141-
* rusti> core::bool::ne(false, true)
141+
* rusti> std::bool::ne(false, true)
142142
* true
143143
* ~~~
144-
* rusti> core::bool::ne(false, false)
144+
* rusti> std::bool::ne(false, false)
145145
* false
146146
* ~~~
147147
*/
@@ -152,10 +152,10 @@ pub fn ne(a: bool, b: bool) -> bool { a != b }
152152
*
153153
* # Examples
154154
* ~~~
155-
* rusti> core::bool::is_true(true)
155+
* rusti> std::bool::is_true(true)
156156
* true
157157
* ~~~
158-
* rusti> core::bool::is_true(false)
158+
* rusti> std::bool::is_true(false)
159159
* false
160160
* ~~~
161161
*/
@@ -166,10 +166,10 @@ pub fn is_true(v: bool) -> bool { v }
166166
*
167167
* # Examples
168168
* ~~~
169-
* rusti> core::bool::is_false(false)
169+
* rusti> std::bool::is_false(false)
170170
* true
171171
* ~~~
172-
* rusti> core::bool::is_false(true)
172+
* rusti> std::bool::is_false(true)
173173
* false
174174
* ~~~
175175
*/
@@ -223,8 +223,8 @@ pub fn to_str(v: bool) -> ~str { if v { ~"true" } else { ~"false" } }
223223
*
224224
* # Examples
225225
* ~~~
226-
* do core::bool::all_values |x: bool| {
227-
* println(core::bool::to_str(x));
226+
* do std::bool::all_values |x: bool| {
227+
* println(std::bool::to_str(x));
228228
* }
229229
* ~~~
230230
*/

0 commit comments

Comments
 (0)