Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions exercises/quizzes/quiz2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// is going to be applied to the string. It can either be:
// - Uppercase the string
// - Trim the string
// - Append "bar" to the string a specified amount of times
// - Append "bar" to the end of the string a specified amount of times
//
// The exact form of this will be:
// - The input is going to be a Vector of 2-length tuples,
Expand Down Expand Up @@ -48,6 +48,7 @@ mod tests {
("foo".to_string(), Command::Append(1)),
("bar".to_string(), Command::Append(5)),
];

let output = transformer(input);

assert_eq!(
Expand All @@ -60,4 +61,4 @@ mod tests {
]
);
}
}
}
2 changes: 1 addition & 1 deletion solutions/quizzes/quiz3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl<T: Display> ReportCard<T> {
fn print(&self) -> String {
format!(
"{} ({}) - achieved a grade of {}",
&self.student_name, &self.student_age, &self.grade,
self.student_name, self.student_age, self.grade,
)
}
}
Expand Down