Skip to content

Commit c6f46b5

Browse files
authored
Merge pull request #8379 from robstoll/patch-34
doc(trait param): state which rule is violated
2 parents 248009c + e829c77 commit c6f46b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/other-new-features/trait-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class D extends C with Greeting("Bill") // error: parameter passed twice
2626
```
2727

2828
Should this print "Bob" or "Bill"? In fact this program is illegal,
29-
because it violates one of the following rules for trait parameters:
29+
because it violates the second rule of the following for trait parameters:
3030

3131
1. If a class `C` extends a parameterized trait `T`, and its superclass does not, `C` _must_ pass arguments to `T`.
3232

0 commit comments

Comments
 (0)