Skip to content

Commit a180d83

Browse files
author
fmoko
authored
Merge pull request #413 from danwilhelm/generics3-90chars
2 parents e81adc2 + 0311c03 commit a180d83

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

exercises/generics/generics3.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// An imaginary magical school has a new report card generation system written in rust!
1+
// An imaginary magical school has a new report card generation system written in Rust!
22
// Currently the system only supports creating report cards where the student's grade
3-
// is represented numerically (e.g. 1.0 -> 5.5). However, the school also issues alphabetical grades
4-
// (A+ -> F-) and needs to be able to print both types of report card!
3+
// is represented numerically (e.g. 1.0 -> 5.5).
4+
// However, the school also issues alphabetical grades (A+ -> F-) and needs
5+
// to be able to print both types of report card!
56

6-
// Make the necessary code changes to support alphabetical report cards, thereby making the second
7-
// test pass.
7+
// Make the necessary code changes to support alphabetical report cards, thereby making
8+
// the second test pass.
89

910
// I AM NOT DONE
1011
pub struct ReportCard {
@@ -15,7 +16,8 @@ pub struct ReportCard {
1516

1617
impl ReportCard {
1718
pub fn print(&self) -> String {
18-
format!("{} ({}) - achieved a grade of {}", &self.student_name, &self.student_age, &self.grade)
19+
format!("{} ({}) - achieved a grade of {}",
20+
&self.student_name, &self.student_age, &self.grade)
1921
}
2022
}
2123

0 commit comments

Comments
 (0)