Skip to content

Commit e7ba9d4

Browse files
authored
Merge pull request #1361 from 16yuki0702/modify_supertrait_sample
Modify supertraits sample code
2 parents de2ba81 + e272a43 commit e7ba9d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/trait/supertraits.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ trait CompSciStudent: Programmer + Student {
2626
2727
fn comp_sci_student_greeting(student: &dyn CompSciStudent) -> String {
2828
format!(
29-
"My name is {} and I attend {}. My Git username is {}",
29+
"My name is {} and I attend {}. My favorite language is {}. My Git username is {}",
3030
student.name(),
3131
student.university(),
32+
student.fav_language(),
3233
student.git_username()
3334
)
3435
}

0 commit comments

Comments
 (0)