瀏覽代碼

Added documentation to main

Lorenz Bung 7 年之前
父節點
當前提交
64a3b81309
No account linked to committer's email address
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      hw7/task2/src/main.rs

+ 4
- 0
hw7/task2/src/main.rs 查看文件

@@ -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…
取消
儲存