File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 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 !
2
2
// 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!
5
6
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.
8
9
9
10
// I AM NOT DONE
10
11
pub struct ReportCard {
@@ -15,7 +16,8 @@ pub struct ReportCard {
15
16
16
17
impl ReportCard {
17
18
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)
19
21
}
20
22
}
21
23
You can’t perform that action at this time.
0 commit comments