]> git.lizzy.rs Git - rust.git/commitdiff
Change the biguint documentation example to reflect deprecated owned vector
authorTim Brooks <tim.brooks@staples.com>
Wed, 7 May 2014 22:27:09 +0000 (15:27 -0700)
committerTim Brooks <tim.brooks@staples.com>
Thu, 8 May 2014 02:54:37 +0000 (19:54 -0700)
src/libnum/bigint.rs

index 5e1bd29e5a6e7d2cdcc3ec616493d16f944ceeb3..ef6f1aafe8864f9a74da4291f04f80265505298d 100644 (file)
@@ -74,7 +74,7 @@ pub fn to_doublebigdigit(hi: BigDigit, lo: BigDigit) -> DoubleBigDigit {
 /**
 A big unsigned integer type.
 
-A `BigUint`-typed value `BigUint { data: ~[a, b, c] }` represents a number
+A `BigUint`-typed value `BigUint { data: vec!(a, b, c) }` represents a number
 `(a + b * BigDigit::base + c * BigDigit::base^2)`.
 */
 #[deriving(Clone)]