Piotr Czajkowski 5 天之前
父節點
當前提交
247588e628
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      analyzeJSON/Statistics.cs

+ 2 - 2
analyzeJSON/Statistics.cs

@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
 using Newtonsoft.Json.Linq;
 using System.Linq;
 
@@ -12,7 +12,7 @@ namespace analyzeJSON
 
         private static int CountWords(string text)
         {
-            var words = text.Split(new char[] { ' ', '\t', '\n' });
+            var words = text.Split([' ', '\t', '\n']);
             return words.Count(x => !string.IsNullOrWhiteSpace(x));
         }