Skip to content

Commit e0d9bb1

Browse files
committed
Context manager
1 parent 041ef3a commit e0d9bb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ class Counter:
11691169
```
11701170

11711171
### Context Manager
1172-
* **Enter() should lock the resources and return an object.**
1172+
* **Enter() should lock the resources and (optionally) return an object.**
11731173
* **Exit() should release the resources.**
11741174
* **Any exception that happens inside the with block is passed to the exit() method.**
11751175
* **If it wishes to suppress the exception it must return a true value.**

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@
11131113
(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>)
11141114
</code></pre>
11151115
<div><h3 id="contextmanager">Context Manager</h3><ul>
1116-
<li><strong>Enter() should lock the resources and return an object.</strong></li>
1116+
<li><strong>Enter() should lock the resources and (optionally) return an object.</strong></li>
11171117
<li><strong>Exit() should release the resources.</strong></li>
11181118
<li><strong>Any exception that happens inside the with block is passed to the exit() method.</strong></li>
11191119
<li><strong>If it wishes to suppress the exception it must return a true value.</strong> </li>

0 commit comments

Comments
 (0)