1
0
Fork 0
mirror of https://github.com/satwikkansal/wtfpython synced 2025-07-04 20:38:06 +02:00

Fix relevant typos detected by codespell

Closes https://github.com/satwikkansal/wtfpython/issues/161
This commit is contained in:
Satwik 2019-12-27 20:04:34 +05:30
parent 9a2718ae3a
commit 2c910351b7
5 changed files with 5 additions and 24 deletions

View file

@ -1044,7 +1044,7 @@
" \n",
" > 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",
"- The reason for this equality is behavior is that it allows `OrderedDict` objects to be directly substituted anywhere a regular dictionary is used.\n",
"- 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"
"- 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"
]
},
{
@ -1289,7 +1289,7 @@
" print(\"Iteration\", i)\n",
" break\n",
" except ZeroDivisionError as e:\n",
" print(\"Zero division error ocurred\", e)\n"
" print(\"Zero division error occurred\", e)\n"
]
},
{