File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -782,11 +782,11 @@ impl<T> Vec<T> {
782
782
self . as_mut_slice ( ) . sort_by ( compare)
783
783
}
784
784
785
- /// Returns a slice of ` self` between `start` and `end`.
785
+ /// Returns a slice of self spanning the interval [ `start`, `end`) .
786
786
///
787
787
/// # Failure
788
788
///
789
- /// Fails when `start` or `end` point outside the bounds of ` self` , or when
789
+ /// Fails when the slice ( or part of it) is outside the bounds of self, or when
790
790
/// `start` > `end`.
791
791
///
792
792
/// # Example
Original file line number Diff line number Diff line change @@ -366,9 +366,9 @@ impl<T> Container for ~[T] {
366
366
/// Extension methods for vectors
367
367
pub trait ImmutableVector < ' a , T > {
368
368
/**
369
- * Returns a slice of self between `start` and `end`.
369
+ * Returns a slice of self spanning the interval [ `start`, `end`) .
370
370
*
371
- * Fails when `start` or `end` point outside the bounds of self,
371
+ * Fails when the slice ( or part of it) is outside the bounds of self,
372
372
* or when `start` > `end`.
373
373
*/
374
374
fn slice ( & self , start : uint , end : uint ) -> & ' a [ T ] ;
Original file line number Diff line number Diff line change @@ -653,6 +653,8 @@ impl FromStrRadix for BigUint {
653
653
654
654
impl BigUint {
655
655
/// Creates and initializes a `BigUint`.
656
+ ///
657
+ /// The digits are be in base 2^32.
656
658
#[ inline]
657
659
pub fn new ( v : Vec < BigDigit > ) -> BigUint {
658
660
// omit trailing zeros
@@ -665,6 +667,8 @@ impl BigUint {
665
667
}
666
668
667
669
/// Creates and initializes a `BigUint`.
670
+ ///
671
+ /// The digits are be in base 2^32.
668
672
#[ inline]
669
673
pub fn from_slice ( slice : & [ BigDigit ] ) -> BigUint {
670
674
return BigUint :: new ( Vec :: from_slice ( slice) ) ;
@@ -1315,12 +1319,16 @@ impl<R: Rng> RandBigInt for R {
1315
1319
1316
1320
impl BigInt {
1317
1321
/// Creates and initializes a BigInt.
1322
+ ///
1323
+ /// The digits are be in base 2^32.
1318
1324
#[ inline]
1319
1325
pub fn new ( sign : Sign , v : Vec < BigDigit > ) -> BigInt {
1320
1326
BigInt :: from_biguint ( sign, BigUint :: new ( v) )
1321
1327
}
1322
1328
1323
1329
/// Creates and initializes a `BigInt`.
1330
+ ///
1331
+ /// The digits are be in base 2^32.
1324
1332
#[ inline]
1325
1333
pub fn from_biguint ( sign : Sign , data : BigUint ) -> BigInt {
1326
1334
if sign == Zero || data. is_zero ( ) {
You can’t perform that action at this time.
0 commit comments