Skip to content

Commit c6aee22

Browse files
authored
Merge pull request numpy#22227 from mattip/fix-typo
DOC: fix up release note
2 parents 65c10c1 + a5d383d commit c6aee22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/release/upcoming_changes/21995.compatibility.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ always exactly matches the dtype provided by the caller.
77
In some cases this change means that a *view* rather than the
88
input array is returned.
99
The following is an example for this on 64bit Linux where ``long``
10-
and ``longlong`` are the same precision::
10+
and ``longlong`` are the same precision but different ``dtypes``::
1111

1212
>>> arr = np.array([1, 2, 3], dtype="long")
1313
>>> new_dtype = np.dtype("longlong")
1414
>>> new = np.asarray(arr, dtype=new_dtype)
15-
>>> new.dtype is dtype
15+
>>> new.dtype is new_dtype
1616
True
1717
>>> new is arr
1818
False
1919

2020
Before the change, the ``dtype`` did not match because ``new is arr``
21-
was true.
21+
was ``True``.

0 commit comments

Comments
 (0)