diff options
| author | fmoko <mokou@posteo.de> | 2020-05-28 10:15:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-28 10:15:55 +0200 |
| commit | a180d831a18adb79a26473cc2c081ac7c76792d1 (patch) | |
| tree | 70504afa4aabb25b76cf2cc97c76ac99cf8fb634 | |
| parent | e81adc275240308ea49fe4f09f80977d5e6e4dce (diff) | |
| parent | 0311c03735ddbcd66fff951d8f31f89b29c893c0 (diff) | |
Merge pull request #413 from danwilhelm/generics3-90chars
| -rw-r--r-- | exercises/generics/generics3.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/exercises/generics/generics3.rs b/exercises/generics/generics3.rs index cd3232a..c76425c 100644 --- a/exercises/generics/generics3.rs +++ b/exercises/generics/generics3.rs @@ -1,10 +1,11 @@ -// An imaginary magical school has a new report card generation system written in rust! +// An imaginary magical school has a new report card generation system written in Rust! // Currently the system only supports creating report cards where the student's grade -// is represented numerically (e.g. 1.0 -> 5.5). However, the school also issues alphabetical grades -// (A+ -> F-) and needs to be able to print both types of report card! +// is represented numerically (e.g. 1.0 -> 5.5). +// However, the school also issues alphabetical grades (A+ -> F-) and needs +// to be able to print both types of report card! -// Make the necessary code changes to support alphabetical report cards, thereby making the second -// test pass. +// Make the necessary code changes to support alphabetical report cards, thereby making +// the second test pass. // I AM NOT DONE pub struct ReportCard { @@ -15,7 +16,8 @@ pub struct ReportCard { impl ReportCard { pub fn print(&self) -> String { - format!("{} ({}) - achieved a grade of {}", &self.student_name, &self.student_age, &self.grade) + format!("{} ({}) - achieved a grade of {}", + &self.student_name, &self.student_age, &self.grade) } } |
