We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5958a2 commit 46429e6Copy full SHA for 46429e6
challenges/19_Count_Words/CountWords.cs
@@ -17,6 +17,6 @@ static void Start() {
17
}
18
19
static int Count(string sentence) {
20
- return sentence.Split(" ", StringSplitOptions.RemoveEmptyEntries).Length;
+ return sentence.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries).Length;
21
22
challenges/19_Count_Words/CountWords.exe
3.5 KB
0 commit comments