Skip to content

Commit 986862c

Browse files
committed
Grammar fixes
1 parent 72f7bf1 commit 986862c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ import os, shutil
16601660
```
16611661

16621662
```python
1663-
os.chdir(<path>) # Changes current working directory.
1663+
os.chdir(<path>) # Changes the current working directory.
16641664
os.mkdir(<path>, mode=0o777) # Creates a directory. Mode is in octal.
16651665
```
16661666

@@ -1676,8 +1676,8 @@ os.replace(from, to) # Same, but overwrites 'to' if it exists.
16761676

16771677
```python
16781678
os.remove(<path>) # Deletes the file.
1679-
os.rmdir(<path>) # Deletes empty directory.
1680-
shutil.rmtree(<path>) # Deletes non-empty directory.
1679+
os.rmdir(<path>) # Deletes the empty directory.
1680+
shutil.rmtree(<path>) # Deletes the non-empty directory.
16811681
```
16821682

16831683
### Shell Commands

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@
15121512

15131513

15141514

1515-
<pre><code class="python language-python hljs">os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes current working directory.</span>
1515+
<pre><code class="python language-python hljs">os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes the current working directory.</span>
15161516
os.mkdir(&lt;path&gt;, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates a directory. Mode is in octal.</span>
15171517
</code></pre>
15181518
<pre><code class="python language-python hljs">shutil.copy(from, to) <span class="hljs-comment"># Copies the file.</span>
@@ -1522,8 +1522,8 @@
15221522
os.replace(from, to) <span class="hljs-comment"># Same, but overwrites 'to' if it exists.</span>
15231523
</code></pre>
15241524
<pre><code class="python language-python hljs">os.remove(&lt;path&gt;) <span class="hljs-comment"># Deletes the file.</span>
1525-
os.rmdir(&lt;path&gt;) <span class="hljs-comment"># Deletes empty directory.</span>
1526-
shutil.rmtree(&lt;path&gt;) <span class="hljs-comment"># Deletes non-empty directory.</span>
1525+
os.rmdir(&lt;path&gt;) <span class="hljs-comment"># Deletes the empty directory.</span>
1526+
shutil.rmtree(&lt;path&gt;) <span class="hljs-comment"># Deletes the non-empty directory.</span>
15271527
</code></pre>
15281528
<div><h3 id="shellcommands">Shell Commands</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os
15291529
&lt;str&gt; = os.popen(<span class="hljs-string">'&lt;shell_command&gt;'</span>).read()

0 commit comments

Comments
 (0)