@@ -120,7 +120,7 @@ impl<A> Array<A, Ix2> {
120
120
121
121
/// Append a column to an array
122
122
///
123
- /// The elements from `column` are cloned and added as a new row in the array.
123
+ /// The elements from `column` are cloned and added as a new column in the array.
124
124
///
125
125
/// ***Errors*** with a shape error if the length of the column does not match the length of
126
126
/// the columns in the array.
@@ -380,7 +380,7 @@ impl<A, D> Array<A, D>
380
380
/// appending to an array along the same axis.
381
381
///
382
382
/// The amortized average complexity of the append, when appending along its growing axis, is
383
- /// O(*m*) where *m* is the length of the row .
383
+ /// O(*m*) where *m* is the number of individual elements to append .
384
384
///
385
385
/// The memory layout of the argument `array` does not matter to the same extent.
386
386
///
@@ -438,14 +438,14 @@ impl<A, D> Array<A, D>
438
438
/// appending to an array along the same axis.
439
439
///
440
440
/// The amortized average complexity of the append, when appending along its growing axis, is
441
- /// O(*m*) where *m* is the length of the row .
441
+ /// O(*m*) where *m* is the number of individual elements to append .
442
442
///
443
443
/// The memory layout of the argument `array` does not matter to the same extent.
444
444
///
445
445
/// ```rust
446
446
/// use ndarray::{Array, ArrayView, array, Axis};
447
447
///
448
- /// // create an empty array and append
448
+ /// // create an empty array and append two rows at a time
449
449
/// let mut a = Array::zeros((0, 4));
450
450
/// let ones = ArrayView::from(&[1.; 8]).into_shape((2, 4)).unwrap();
451
451
/// let zeros = ArrayView::from(&[0.; 8]).into_shape((2, 4)).unwrap();
0 commit comments