Skip to content
Prev Previous commit
Next Next commit
fix exception doctest in cast
  • Loading branch information
CharlieZhao95 committed Jul 10, 2023
commit 6b6796c5ac1c6fc0b240d81ceb5ac32fda64ba4b
4 changes: 2 additions & 2 deletions Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4036,8 +4036,8 @@ copying.
>>> x = memoryview(b)
>>> x[0] = b'a'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: memoryview: invalid value for format "B"
...
TypeError: memoryview: invalid type for format 'B'
>>> y = x.cast('c')
>>> y[0] = b'a'
>>> b
Expand Down