Skip to content
Prev Previous commit
Next Next commit
fix toreadonly doctest
  • Loading branch information
CharlieZhao95 committed Jul 10, 2023
commit cf8bd3655112e4013f225b75bba96455014d0332
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3950,7 +3950,7 @@ copying.
>>> m = memoryview(bytearray(b'abc'))
>>> mm = m.toreadonly()
>>> mm.tolist()
[89, 98, 99]
[97, 98, 99]
>>> mm[0] = 42
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
Expand Down