Skip to content

Commit 46429e6

Browse files
committed
Fix for Mono
1 parent e5958a2 commit 46429e6

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

challenges/19_Count_Words/CountWords.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ static void Start() {
1717
}
1818

1919
static int Count(string sentence) {
20-
return sentence.Split(" ", StringSplitOptions.RemoveEmptyEntries).Length;
20+
return sentence.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries).Length;
2121
}
2222
}
3.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)