Skip to content

Commit

Permalink
DOC: atleast_nd: fix docstring syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascolley committed Sep 23, 2024
1 parent 97d71b4 commit 89b9c8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/array_api_extra/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def atleast_nd(x: Array, *, ndim: int, xp: ModuleType) -> Array:
Parameters
----------
x: array
ndim: int
x : array
ndim : int
The minimum number of dimensions for the result.
xp: array_namespace
xp : array_namespace
The standard-compatible namespace for `x`.
Returns
-------
res: array
res : array
An array with ``res.ndim`` >= `ndim`.
If ``x.ndim`` >= `ndim`, `x` is returned.
If ``x.ndim`` < `ndim`, `x` is expanded by prepending new axes
Expand Down

0 comments on commit 89b9c8c

Please sign in to comment.