mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 04:23:37 +00:00
Remove un-needed <
This commit is contained in:
parent
315e3ff8dd
commit
93be00f995
|
@ -140,7 +140,7 @@
|
|||
|
||||
#[doc(
|
||||
brief = "Compare two chars.",
|
||||
return = "-1 if a<b, 0 if a==b, +1 if a>b"
|
||||
return = "-1 if a<b, 0 if a==b, +1 if a>b"
|
||||
)]
|
||||
pure fn cmp(a: char, b: char) -> int {
|
||||
ret if b > a { -1 }
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
shared boxes (@T) may not be transmitted across channels. \
|
||||
Example: \
|
||||
let p = comm::port(); \
|
||||
task::spawn(comm::chan(p), fn (c: chan<str>) { \
|
||||
task::spawn(comm::chan(p), fn (c: chan<str>) { \
|
||||
comm::send(c, \"Hello, World\"); \
|
||||
}); \
|
||||
io::println(comm::recv(p));"
|
||||
|
@ -87,7 +87,7 @@ fn port_recv(dptr: *uint, po: *rust_port,
|
|||
desc = "Each port has a unique per-task identity and may not \
|
||||
be replicated or transmitted. If a port value is \
|
||||
copied, both copies refer to the same port. \
|
||||
Ports may be associated with multiple <chan>s."
|
||||
Ports may be associated with multiple <chan>s."
|
||||
)]
|
||||
tag port<T: send> { port_t(@port_ptr<T>); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue