1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-23 16:56:12 +02:00
This commit is contained in:
Robert Schäfer 2024-04-25 19:19:38 +09:00 committed by GitHub
commit f0a02c777e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,7 @@
// print both types of report card!
//
// Make the necessary code changes in the struct ReportCard and the impl block
// to support alphabetical report cards. Change the Grade in the second test to
// "A+" to show that your changes allow alphabetical grades.
// to support alphabetical report cards.
//
// Execute `rustlings hint quiz3` or use the `hint` watch subcommand for a hint.
@ -50,9 +49,8 @@ mod tests {
#[test]
fn generate_alphabetic_report_card() {
// TODO: Make sure to change the grade here after you finish the exercise.
let report_card = ReportCard {
grade: 2.1,
grade: "A+",
student_name: "Gary Plotter".to_string(),
student_age: 11,
};