Skip to content

Commit 4c041ea

Browse files
authored
expand_dims() signature change (and slight doc fix) (#331)
* Fix incorrect output shape behaviour in `expand_dims()` * Keep `expand_dims()` signature in-line with `squeeze()`
1 parent ec731d6 commit 4c041ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/API_specification/manipulation_functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Joins a sequence of arrays along an existing axis.
3939
```
4040
4141
(function-expand_dims)=
42-
### expand_dims(x, /, *, axis)
42+
### expand_dims(x, /, axis)
4343
4444
Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by `axis`.
4545
@@ -57,7 +57,7 @@ Expands the shape of an array by inserting a new axis (dimension) of size one at
5757
5858
- **out**: _<array>_
5959
60-
- an expanded output array having the same data type and shape as `x`.
60+
- an expanded output array having the same data type as `x`.
6161
6262
(function-flip)=
6363
### flip(x, /, *, axis=None)

0 commit comments

Comments
 (0)