Skip to content

Commit da7683f

Browse files
committed
Update p02_printing_to_file.rst
fix code error ( maybe )
1 parent 816d6b2 commit da7683f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/c05/p02_printing_to_file.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
.. code-block:: python
1818
19-
with open('somefile.txt', 'rt') as f:
19+
with open('somefile.txt', 'wt') as f:
2020
print('Hello World!', file=f)
2121
2222
----------

0 commit comments

Comments
 (0)