]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9523 : huonw/rust/kud1ing-docs, r=huonw
authorbors <bors@rust-lang.org>
Fri, 27 Sep 2013 03:06:09 +0000 (20:06 -0700)
committerbors <bors@rust-lang.org>
Fri, 27 Sep 2013 03:06:09 +0000 (20:06 -0700)
Collation of @kud1ing's work in #9511, #9512, #9513 and #9518.

1  2 
src/libextra/bitv.rs

index 1ff54772f397ff81d1254fbc3287115e266354e8,323cf5b46b5452ffc6979b73753efa74cc5fc6cd..a24f3521fea9936cf8046b6b094a21b0671a22fe
@@@ -519,11 -519,11 +519,11 @@@ impl Bitv 
  }
  
  /**
-  * Transform a byte-vector into a bitv. Each byte becomes 8 bits,
+  * Transform a byte-vector into a `Bitv`. Each byte becomes 8 bits,
   * with the most significant bits of each byte coming first. Each
-  * bit becomes true if equal to 1 or false if equal to 0.
+  * bit becomes `true` if equal to 1 or `false` if equal to 0.
   */
 -pub fn from_utf8(bytes: &[u8]) -> Bitv {
 +pub fn from_bytes(bytes: &[u8]) -> Bitv {
      from_fn(bytes.len() * 8, |i| {
          let b = bytes[i / 8] as uint;
          let offset = i % 8;