diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 91f8d69cf2e..5f5d3b6ce75 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2378,7 +2378,7 @@ copying. Memory is generally interpreted as simple bytes. bytearray(b'z123fg') >>> v[2] = b'spam' Traceback (most recent call last): - File "", line 1, in + File "", line 1, in ValueError: cannot modify size of memoryview object Notice how the size of the memoryview object cannot be changed.