Sfoglia il codice sorgente

Added documentation to main

Lorenz Bung 7 anni fa
parent
commit
64a3b81309
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      hw7/task2/src/main.rs

+ 4
- 0
hw7/task2/src/main.rs Vedi File

@@ -4,11 +4,15 @@ use std::process;
4 4
 use std::io;
5 5
 use task2::Shell;
6 6
 
7
+
8
+/// Diese Funktion startet die Shell durch Aufruf
9
+/// von `Shell::new()`.
7 10
 fn main() {
8 11
     let stdin = io::stdin();
9 12
     let stdout = io::stdout();
10 13
 
11 14
     let mut s = Shell::new(stdin.lock(), stdout.lock(), "schell".to_string());
15
+    // Kontrolliertes bzw. unkontrolliertes Beenden der Shell
12 16
     match s.start() {
13 17
         Ok(_) => process::exit(0),
14 18
         Err(_) => process::exit(1),

Loading…
Annulla
Salva