Remove unneeded pub

This commit is contained in:
mo8it
2024-05-22 15:04:12 +02:00
parent d0b843d6c4
commit 3bb71c6b0c
18 changed files with 30 additions and 30 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
// the first element is the string, the second one is the command.
// - The output element is going to be a Vector of strings.
pub enum Command {
enum Command {
Uppercase,
Trim,
Append(usize),
+5 -5
View File
@@ -12,14 +12,14 @@
// to support alphabetical report cards. Change the Grade in the second test to
// "A+" to show that your changes allow alphabetical grades.
pub struct ReportCard {
pub grade: f32,
pub student_name: String,
pub student_age: u8,
struct ReportCard {
grade: f32,
student_name: String,
student_age: u8,
}
impl ReportCard {
pub fn print(&self) -> String {
fn print(&self) -> String {
format!(
"{} ({}) - achieved a grade of {}",
&self.student_name, &self.student_age, &self.grade