Skip to content

Commit 3542285

Browse files
authored
Fix typos (#25)
1 parent 029005d commit 3542285

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: doc/data_structures/sorted_set/sorted_set.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
All operations operate on *values* rather than *references*.
66

7-
Contrary to popular textbooks, operations don't return references to interally used data structures (such as tree nodes).
7+
Contrary to popular textbooks, operations don't return references to internally used data structures (such as tree nodes).
88

99
This makes some sequences of operations slower.
1010
For example if you first `find` a key and then upsert the same key using `insert`;

Diff for: src/data_structures/sorted_set/binary_search_tree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function bst:succ(key)
9999
return node and node.key
100100
end
101101

102-
-- Analogeous to `succ`
102+
-- Analogous to `succ`
103103
local function pred_node(self, key)
104104
local less_than = self.less_than
105105
local function pred(node)

Diff for: src/data_structures/sorted_set/btree.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function btree:range_ascending(min_key, max_key)
268268
end)
269269
end
270270

271-
-- Analogeous to `range_ascending`
271+
-- Analogous to `range_ascending`
272272
function btree:range_descending(min_key, max_key)
273273
if min_key == nil and max_key == nil then
274274
return self:descending()

0 commit comments

Comments
 (0)