Selaa lähdekoodia

Ran rustfmt on lib.rs of task2

Joshua Rutschmann 8 vuotta sitten
vanhempi
commit
660e299afe
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      hw2/task2/src/lib.rs

+ 3
- 3
hw2/task2/src/lib.rs Näytä tiedosto

@@ -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…
Peruuta
Tallenna