瀏覽代碼

Ran rustfmt on lib.rs of task2

Joshua Rutschmann 8 年之前
父節點
當前提交
660e299afe
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      hw2/task2/src/lib.rs

+ 3
- 3
hw2/task2/src/lib.rs 查看文件

@@ -9,11 +9,11 @@ pub fn run(conf: &Config) -> i32 {
9 9
     let mut count = 0;
10 10
     for c in conf.line.chars() {
11 11
         if c == conf.search {
12
-        count = count + 1;
12
+            count = count + 1;
13 13
         }
14
-    }   
14
+    }
15 15
     count
16
-  }
16
+}
17 17
 
18 18
 
19 19
 impl Config {

Loading…
取消
儲存