8000 Merge pull request #5359 from tacaswell/linspace_doc · numpy/numpy@c5808d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c5808d1

Browse files
committed
Merge pull request #5359 from tacaswell/linspace_doc
DOC : minor changes to linspace docstring
2 parents b8a5da4 + 14a3dca commit c5808d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

numpy/core/function_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
3232
retstep : bool, optional
3333
If True, return (`samples`, `step`), where `step` is the spacing
3434
between samples.
35-
dtype : dtype
35+
dtype : dtype, optional
3636
The type of the output array. If `dtype` is not given, infer the data
3737
type from the other input arguments.
3838
@@ -44,7 +44,9 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
4444
There are `num` equally spaced samples in the closed interval
4545
``[start, stop]`` or the half-open interval ``[start, stop)``
4646
(depending on whether `endpoint` is True or False).
47-
step : float (only if `retstep` is True)
47+
step : float
48+
Only returned if `retstep` is True
49+
4850
Size of spacing between samples.
4951
5052

0 commit comments

Comments
 (0)
0