From 93be00f99594464fc753796395ce0cfb8ee790ea Mon Sep 17 00:00:00 2001 From: Roland Tanglao Date: Tue, 17 Jan 2012 11:56:13 -0800 Subject: [PATCH] Remove un-needed < --- src/libcore/char.rs | 2 +- src/libcore/comm.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcore/char.rs b/src/libcore/char.rs index b92536db99466..2c46c652cd07c 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -140,7 +140,7 @@ pure fn to_upper(c: char) -> char { #[doc( brief = "Compare two chars.", - return = "-1 if a<b, 0 if a==b, +1 if a>b" + return = "-1 if ab" )] pure fn cmp(a: char, b: char) -> int { ret if b > a { -1 } diff --git a/src/libcore/comm.rs b/src/libcore/comm.rs index 1976e4b9c1a18..f9e95edf5e299 100644 --- a/src/libcore/comm.rs +++ b/src/libcore/comm.rs @@ -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) { \ comm::send(c, \"Hello, World\"); \ }); \ io::println(comm::recv(p));" @@ -87,7 +87,7 @@ resource port_ptr(po: *rustrt::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 s." )] tag port { port_t(@port_ptr); }