Skip to content

Commit ebe9e98

Browse files
committed
Fix typos in push/append docs
There were some typos or forgotten words due to copying the same text to cover these methods, since they are all variants of the same operation.
1 parent 25e2863 commit ebe9e98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/impl_owned_array.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl<A> Array<A, Ix2> {
120120

121121
/// Append a column to an array
122122
///
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.
124124
///
125125
/// ***Errors*** with a shape error if the length of the column does not match the length of
126126
/// the columns in the array.
@@ -380,7 +380,7 @@ impl<A, D> Array<A, D>
380380
/// appending to an array along the same axis.
381381
///
382382
/// 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.
384384
///
385385
/// The memory layout of the argument `array` does not matter to the same extent.
386386
///
@@ -438,14 +438,14 @@ impl<A, D> Array<A, D>
438438
/// appending to an array along the same axis.
439439
///
440440
/// 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.
442442
///
443443
/// The memory layout of the argument `array` does not matter to the same extent.
444444
///
445445
/// ```rust
446446
/// use ndarray::{Array, ArrayView, array, Axis};
447447
///
448-
/// // create an empty array and append
448+
/// // create an empty array and append two rows at a time
449449
/// let mut a = Array::zeros((0, 4));
450450
/// let ones = ArrayView::from(&[1.; 8]).into_shape((2, 4)).unwrap();
451451
/// let zeros = ArrayView::from(&[0.; 8]).into_shape((2, 4)).unwrap();

0 commit comments

Comments
 (0)