Browse Source

Merge remote-tracking branch 'origin/hw1' into hw1

Joshua Rutschmann 8 years ago
parent
commit
058ea89043
2 changed files with 8 additions and 2 deletions
  1. 6
    0
      hw1/task2/Cargo.toml
  2. 2
    2
      hw1/task2/src/lib.rs

+ 6
- 0
hw1/task2/Cargo.toml View File

@@ -0,0 +1,6 @@
1
+[package]
2
+name = "task2"
3
+version = "0.1.0"
4
+authors = ["Lorenz Bung <lorenz.bung@googlemail.com>"]
5
+
6
+[dependencies]

+ 2
- 2
hw1/task2/src/lib.rs View File

@@ -1,8 +1,8 @@
1 1
 pub fn square(n: u32) -> u64 {
2
-    unimplemented!()
2
+    println!(n)
3
+    n * n
3 4
 }
4 5
 
5 6
 
6 7
 pub fn total() -> u64 {
7
-    unimplemented!();
8 8
 }

Loading…
Cancel
Save