Skip to content

Commit 2c91035

Browse files
committed
Fix relevant typos detected by codespell
Closes satwikkansal#161
1 parent 9a2718a commit 2c91035

File tree

5 files changed

+5
-24
lines changed

5 files changed

+5
-24
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Probably unexpected output
2929
```py
3030
Setting up examples for clarification (if necessary)
3131
```
32-
**Outupt:**
32+
**Output:**
3333
```py
3434
>>> trigger # some example that makes it easy to unveil the magic
3535
# some justified output

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def one_more_func(): # A gotcha!
575575
print("Iteration", i)
576576
break
577577
except ZeroDivisionError as e:
578-
print("Zero division error ocurred", e)
578+
print("Zero division error occurred", e)
579579
```
580580
581581
**Output:**

irrelevant/notebook_instructions.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,3 @@
55
- Reorder the examples, so that the ones that work are upfront.
66
- Run the `notebook_generator.py`, it will generate a notebook named `wtf.ipynb`
77
- Revert the README.md changes (optional)
8-
9-
10-
# Hosted notebook instructions
11-
12-
This is just an experimental attempt of browsing wtfpython through jupyter notebooks. Some examples are read-only because,
13-
- they either require a version of Python that's not supported in the hosted runtime.
14-
- or they can't be reproduced in the notebook envrinonment.
15-
16-
The expected outputs are already present in collapsed cells following the code cells. The Google colab provides Python2 (2.7) and Python3 (3.6, default) runtimes. You can switch among these for Python2 specific examples. For examples specific to other minor versions, you can simply refer to collapsed outputs (it's not possible to control the minor version in hosted notebooks as of now). You can check the active version using
17-
18-
```py
19-
>>> import sys
20-
>>> sys.version
21-
# Prints out Python version here.
22-
```
23-
24-
That being said, most of tbe examples do work as expected. If you face any trouble, feel free to consult the original content on wtfpython and create an issue in the repo. Have fun!
25-
26-

irrelevant/obsolete/add_categories

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ f*
139139
Half triple-quoted strings
140140
f
141141

142-
Implicity key type conversion
142+
Implicit key type conversion
143143
f*
144144

145145
Stubborn `del` operator

irrelevant/wtf.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@
10441044
" \n",
10451045
" > Equality tests between OrderedDict objects are order-sensitive and are implemented as `list(od1.items())==list(od2.items())`. Equality tests between `OrderedDict` objects and other Mapping objects are order-insensitive like regular dictionaries.\n",
10461046
"- The reason for this equality is behavior is that it allows `OrderedDict` objects to be directly substituted anywhere a regular dictionary is used.\n",
1047-
"- Okay, so why did changing the order affect the lenght of the generated `set` object? The answer is the lack of intransitive equality only. Since sets are \"unordered\" collections of unique elements, the order in which elements are inserted shouldn't matter. But in this case, it does matter. Let's break it down a bit,\n"
1047+
"- Okay, so why did changing the order affect the length of the generated `set` object? The answer is the lack of intransitive equality only. Since sets are \"unordered\" collections of unique elements, the order in which elements are inserted shouldn't matter. But in this case, it does matter. Let's break it down a bit,\n"
10481048
]
10491049
},
10501050
{
@@ -1289,7 +1289,7 @@
12891289
" print(\"Iteration\", i)\n",
12901290
" break\n",
12911291
" except ZeroDivisionError as e:\n",
1292-
" print(\"Zero division error ocurred\", e)\n"
1292+
" print(\"Zero division error occurred\", e)\n"
12931293
]
12941294
},
12951295
{

0 commit comments

Comments
 (0)