Skip to content

Commit 56a1f97

Browse files
leoyvensijanos
authored andcommitted
Add stubs to some exercises (#339)
1 parent 8304885 commit 56a1f97

File tree

7 files changed

+33
-0
lines changed

7 files changed

+33
-0
lines changed

exercises/beer-song/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pub fn verse(n: i32) -> String {
2+
3+
}
4+
5+
pub fn sing(start: i32, end: i32) -> String {
6+
7+
}

exercises/bob/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn reply(message: &str) -> &str {
2+
3+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
pub fn square_of_sum(n: usize) -> usize {
2+
3+
}
4+
5+
pub fn sum_of_squares(n: usize) -> usize {
6+
7+
}
8+
9+
pub fn difference(n: usize) -> usize {
10+
11+
}

exercises/leap/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn is_leap_year(year: i32) -> bool {
2+
3+
}

exercises/proverb/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn build_proverb(list: Vec<&str>) -> String {
2+
3+
}

exercises/raindrops/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn raindrops(n: usize) -> String {
2+
3+
}

exercises/sum-of-multiples/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn sum_of_multiples(limit: u32, factors: &[u32]) -> u32 {
2+
3+
}

0 commit comments

Comments
 (0)