Skip to content

Commit 2a59992

Browse files
committed
Fixed some minor typos
1 parent 238bc21 commit 2a59992

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Bogosort/Lua/Yonaba/bogosort.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ local function is_sorted(array, comp)
2121
return true
2222
end
2323

24-
-- The bogosort implementation:
24+
-- The Bogosort implementation:
2525
-- tbl : a given table to be sorted
2626
-- comp : (Optional) a comparison function.
2727
-- defaults to function(a,b) return a < b end
2828
-- Note: It is advised to use math.randomseed(os.time())
2929
-- before calling this function. Lua's math.random() is
30-
-- naturally deterministic and ince bogosort is based on
30+
-- naturally deterministic and since Bogosort is based on
3131
-- random shuffling, this is necessary to avoid infinite loops
3232
return function (tbl, comp)
3333
comp = comp or function(a, b) return a < b end

Bogosort/Lua/Yonaba/bogosort_test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ end
4242

4343
math.randomseed(os.time())
4444

45-
-- Note: Due to the nature of bogosort, we will use
45+
-- Note: Due to the nature of Bogosort, we will use
4646
-- short tables to perform tests. For higher values of
4747
-- n, we cannot predict the time it will take to perform the
4848
-- sort.

0 commit comments

Comments
 (0)