Browse Source

Added documentation to main

Lorenz Bung 7 years ago
parent
commit
83caf81256
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      hw7/task1/src/main.rs

+ 2
- 0
hw7/task1/src/main.rs View File

7
 mod hasher_sha256;
7
 mod hasher_sha256;
8
 mod hash256;
8
 mod hash256;
9
 
9
 
10
+/// Hauptfunktion zum Starten des Hashers.
10
 pub fn main() {
11
 pub fn main() {
11
     let matches = create_app().get_matches();
12
     let matches = create_app().get_matches();
12
     let base = matches.value_of("base").unwrap_or("1");
13
     let base = matches.value_of("base").unwrap_or("1");
54
     };
55
     };
55
 }
56
 }
56
 
57
 
58
+/// Diese Funktion dient der Konfiguration der App mit dem Paket **Clap**.
57
 fn create_app<'a, 'b>() -> App<'a, 'b> {
59
 fn create_app<'a, 'b>() -> App<'a, 'b> {
58
     App::new("Hash256")
60
     App::new("Hash256")
59
         .version("1.0")
61
         .version("1.0")

Loading…
Cancel
Save