Update p09_read_binary_data_into_mutable_buffer.rst

correct an typo in line 37 and 39
This commit is contained in:
Chi Chung Luk
2018-04-10 23:01:20 +08:00
committed by GitHub
parent b534eaaf72
commit 65081cec6d

View File

@@ -34,9 +34,9 @@
>>> buf = read_into_buffer('sample.bin')
>>> buf
bytearray(b'Hello World')
>>> buf[0:5] = b'Hallo'
>>> buf[0:5] = b'Hello'
>>> buf
bytearray(b'Hallo World')
bytearray(b'Hello World')
>>> with open('newsample.bin', 'wb') as f:
... f.write(buf)
...