File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ trait Person {
8
8
fn name(&self) -> String;
9
9
}
10
10
11
- // Student is a supertrait of Person .
11
+ // Person is a supertrait of Student .
12
12
// Implementing Student requires you to also impl Person.
13
13
trait Student: Person {
14
14
fn university(&self) -> String;
@@ -18,8 +18,8 @@ trait Programmer {
18
18
fn fav_language(&self) -> String;
19
19
}
20
20
21
- // CompSciStudent (computer science student) is a supertrait of both Programmer
22
- // and Student. Implementing CompSciStudent requires you to impl both subtraits .
21
+ // CompSciStudent (computer science student) is a subtrait of both Programmer
22
+ // and Student. Implementing CompSciStudent requires you to impl both supertraits .
23
23
trait CompSciStudent: Programmer + Student {
24
24
fn git_username(&self) -> String;
25
25
}
You can’t perform that action at this time.
0 commit comments