Fix word typos in comments (#4928) · zinating/algorithms-python@90db983 · GitHub
Skip to content

Commit 90db983

Browse files
authored
Fix word typos in comments (TheAlgorithms#4928)
* fixed: spelling nonegative -> non-negative * fixed: spelling transpostiion -> transposition * fixed: spelling topolical -> topological * fixed: spelling sufix -> suffix
1 parent d530d2b commit 90db983

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

sorts/bead_sort.py

Lines changed: 1 addition & 1 deletion

sorts/odd_even_transposition_single_threaded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Source: https://en.wikipedia.org/wiki/Odd%E2%80%93even_sort
33
4-
This is a non-parallelized implementation of odd-even transpostiion sort.
4+
This is a non-parallelized implementation of odd-even transposition sort.
55
66
Normally the swaps in each set happen simultaneously, without that the algorithm
77
is no better than bubble sort.

sorts/topological_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def topological_sort(start, visited, sort):
13-
"""Perform topolical sort on a directed acyclic graph."""
13+
"""Perform topological sort on a directed acyclic graph."""
1414
current = start
1515
# add current to visited
1616
visited.append(current)

strings/prefix_function.py

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)