Skip to content

Commit

Permalink
Merge pull request #1361 from 16yuki0702/modify_supertrait_sample
Browse files Browse the repository at this point in the history
Modify supertraits sample code
  • Loading branch information
marioidival authored Aug 8, 2020
2 parents de2ba81 + e272a43 commit e7ba9d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trait/supertraits.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ trait CompSciStudent: Programmer + Student {
fn comp_sci_student_greeting(student: &dyn CompSciStudent) -> String {
format!(
"My name is {} and I attend {}. My Git username is {}",
"My name is {} and I attend {}. My favorite language is {}. My Git username is {}",
student.name(),
student.university(),
student.fav_language(),
student.git_username()
)
}
Expand Down

0 comments on commit e7ba9d4

Please sign in to comment.