Skip to content

Commit d6f55d9

Browse files
committed
Typo
1 parent b3fb44d commit d6f55d9

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
@@ -1329,7 +1329,7 @@ Cutlery = Enum('Cutlery', ['fork', 'knife', 'spoon'])
13291329
Cutlery = Enum('Cutlery', {'fork': 1, 'knife': 2, 'spoon': 3})
13301330
```
13311331

1332-
#### User-defined functions can not be values, so they must be wrapped:
1332+
#### User-defined functions cannot be values, so they must be wrapped:
13331333
```python
13341334
from functools import partial
13351335
LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r),

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@
12561256
Cutlery = Enum(<span class="hljs-string">'Cutlery'</span>, {<span class="hljs-string">'fork'</span>: <span class="hljs-number">1</span>, <span class="hljs-string">'knife'</span>: <span class="hljs-number">2</span>, <span class="hljs-string">'spoon'</span>: <span class="hljs-number">3</span>})
12571257
</code></pre></div>
12581258

1259-
<div><h4 id="userdefinedfunctionscannotbevaluessotheymustbewrapped">User-defined functions can not be values, so they must be wrapped:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> partial
1259+
<div><h4 id="userdefinedfunctionscannotbevaluessotheymustbewrapped">User-defined functions cannot be values, so they must be wrapped:</h4><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> partial
12601260
LogicOp = Enum(<span class="hljs-string">'LogicOp'</span>, {<span class="hljs-string">'AND'</span>: partial(<span class="hljs-keyword">lambda</span> l, r: l <span class="hljs-keyword">and</span> r),
12611261
<span class="hljs-string">'OR'</span> : partial(<span class="hljs-keyword">lambda</span> l, r: l <span class="hljs-keyword">or</span> r)})
12621262
</code></pre></div>

0 commit comments

Comments
 (0)