Skip to content

Commit 76b279a

Browse files
makarichevsstrptcolin
authored andcommitted
Fix some typos and style non-uniformities
1 parent 3ddfa8c commit 76b279a

7 files changed

+9
-9
lines changed

src/koans/02_strings.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"Maybe you want to find the index of the first occurrence of a substring"
4040
(= 0 (string/index-of "hello world" __))
4141

42-
"Or maybe the last index of the same"
42+
"Or maybe the last index of the same substring"
4343
(= __ (string/last-index-of "hello world, hello" "hello"))
4444

4545
"But when something doesn't exist, nothing is found"

src/koans/05_sets.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"Remember that a set is a *mathematical* set"
1313
(= __ (set '(1 1 2 2 3 3 4 4 5 5)))
1414

15-
"You can ask clojure for the union of two sets"
15+
"You can ask Clojure for the union of two sets"
1616
(= __ (set/union #{1 2 3 4} #{2 3 5}))
1717

1818
"And also the intersection"

src/koans/14_recursion.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
"Yet it becomes more difficult the more steps you take"
3636
(= '(6 5 4 3 2) (recursive-reverse [2 3 4 5 6]))
3737

38-
"Simple things may appear simple."
38+
"Simple things may appear simple"
3939
(= 1 (factorial 1))
4040

41-
"They may require other simple steps."
41+
"They may require other simple steps"
4242
(= 2 (factorial 2))
4343

4444
"Sometimes a slightly bigger step is necessary"

src/koans/15_destructuring.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
(let [[first-name last-name :as full-name] ["Stephen" "Hawking"]]
3030
__))
3131

32-
"Break up maps by key"
32+
"Break up maps by keys"
3333
(= "123 Test Lane, Testerville, TX"
3434
(let [{street-address :street-address, city :city, state :state} test-address]
3535
__))

src/koans/21_partition.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"If you need to, you can start each sequence with an offset"
1515
(= '((0 1 2) (5 6 7) (10 11 12)) (partition 3 __ (range 13)))
1616

17-
"Consider padding the last sequence with some default values..."
17+
"Consider padding the last sequence with some default values"
1818
(= '((0 1 2) (3 4 5) (6 :hello)) (partition 3 3 [__] (range 7)))
1919

20-
"... but notice that they will only pad up to the given sequence length"
20+
"But notice that they will only pad up to the given sequence length"
2121
(= '((0 1 2) (3 4 5) __) (partition 3 3 [:these :are "my" "words"] (range 7))))

src/koans/22_group_by.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[odds evens]))
77

88
(meditations
9-
"To categorize a collection by some function, use group-by."
9+
"To categorize a collection by some function, use group-by"
1010
(= __ (group-by count ["hello" "world" "foo" "bar"]))
1111

1212
"You can simulate filter + remove in one pass"

src/koans/24_macros.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"You can do better than that - hand crafting FTW!"
3939
(= '(* 10 2) (macroexpand '(infix-concise (10 * 2))))
4040

41-
"Things don't always work as you would like them to... "
41+
"Things don't always work as you would like them to"
4242
(= '(+ 10 (2 * 3)) (macroexpand '(infix-concise (10 + (2 * 3)))))
4343

4444
"Really, you don't understand recursion until you understand recursion"

0 commit comments

Comments
 (0)