diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 45ec6c7a51b7b0..fd161781949e83 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -3703,7 +3703,7 @@ features: dirs.remove('__pycache__') # don't visit __pycache__ directories In the next example (simple implementation of :func:`shutil.rmtree`), - walking the tree bottom-up is essential, :func:`rmdir` doesn't allow + walking the tree bottom-up is essential: :func:`rmdir` doesn't allow deleting a directory before the directory is empty:: # Delete everything reachable from the directory named in "top",