Skip to content

Commit f56cd11

Browse files
committed
Fix indentation
1 parent 83f146e commit f56cd11

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

chapters/strings/finding-substrings.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@ message.lastIndexOf "This"
2727

2828
# Count occurrences of a given string
2929

30-
substrCount = (str, subStr) ->
31-
32-
re = new RegExp( subStr ,"g" )
33-
34-
( str.match(re) or [] ).length
30+
substrCount = (str, subStr) ->
31+
re = new RegExp( subStr ,"g" )
32+
( str.match(re) or [] ).length
3533

3634
substrCount message, " a "
3735
# => 3

0 commit comments

Comments
 (0)