diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index aab8d2e31bd..a07be4f91f5 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2424,7 +2424,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.