File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ pure fn to_upper(c: char) -> char {
140
140
141
141
#[ doc(
142
142
brief = "Compare two chars." ,
143
- return = "-1 if a< b, 0 if a==b, +1 if a>b"
143
+ return = "-1 if a< b, 0 if a==b, +1 if a>b"
144
144
) ]
145
145
pure fn cmp ( a : char , b : char ) -> int {
146
146
ret if b > a { -1 }
Original file line number Diff line number Diff line change 11
11
shared boxes (@T) may not be transmitted across channels. \
12
12
Example: \
13
13
let p = comm::port(); \
14
- task::spawn(comm::chan(p), fn (c: chan< str>) { \
14
+ task::spawn(comm::chan(p), fn (c: chan< str>) { \
15
15
comm::send(c, \" Hello, World\" ); \
16
16
}); \
17
17
io::println(comm::recv(p));"
@@ -87,7 +87,7 @@ resource port_ptr<T: send>(po: *rustrt::rust_port) {
87
87
desc = "Each port has a unique per-task identity and may not \
88
88
be replicated or transmitted. If a port value is \
89
89
copied, both copies refer to the same port. \
90
- Ports may be associated with multiple < chan>s."
90
+ Ports may be associated with multiple < chan>s."
91
91
) ]
92
92
tag port<T : send> { port_t ( @port_ptr<T >) ; }
93
93
You can’t perform that action at this time.
0 commit comments