diff options
| author | mo8it <mo8it@proton.me> | 2024-05-22 15:04:12 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-05-22 15:04:12 +0200 |
| commit | 3bb71c6b0c9d58e421f79d914f5483cb5a98af0b (patch) | |
| tree | 3b28edae9903c24212be1aa54d5d0e7bd69bedfa /exercises/quizzes | |
| parent | d0b843d6c4a99636d3dc6caf3ceebea14cb3b07d (diff) | |
Remove unneeded pub
Diffstat (limited to 'exercises/quizzes')
| -rw-r--r-- | exercises/quizzes/quiz2.rs | 2 | ||||
| -rw-r--r-- | exercises/quizzes/quiz3.rs | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/exercises/quizzes/quiz2.rs b/exercises/quizzes/quiz2.rs index 0a29e78..e01e3f1 100644 --- a/exercises/quizzes/quiz2.rs +++ b/exercises/quizzes/quiz2.rs @@ -16,7 +16,7 @@ // the first element is the string, the second one is the command. // - The output element is going to be a Vector of strings. -pub enum Command { +enum Command { Uppercase, Trim, Append(usize), diff --git a/exercises/quizzes/quiz3.rs b/exercises/quizzes/quiz3.rs index f255cb5..f3cb1bc 100644 --- a/exercises/quizzes/quiz3.rs +++ b/exercises/quizzes/quiz3.rs @@ -12,14 +12,14 @@ // to support alphabetical report cards. Change the Grade in the second test to // "A+" to show that your changes allow alphabetical grades. -pub struct ReportCard { - pub grade: f32, - pub student_name: String, - pub student_age: u8, +struct ReportCard { + grade: f32, + student_name: String, + student_age: u8, } impl ReportCard { - pub fn print(&self) -> String { + fn print(&self) -> String { format!( "{} ({}) - achieved a grade of {}", &self.student_name, &self.student_age, &self.grade |
