Skip to content

Commit 12c7583

Browse files
committed
fix wording
1 parent 1366e96 commit 12c7583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/changed-features/structural-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ i3.range: // error: range is not a member of `Vehicle`
156156
The difference is that the type of an anonymous class that does not extend `Selectable` is just formed from the parent type(s) of the class, without
157157
adding any refinements. Hence, `i3` now has just type `Vehicle` and the selection `i3.range` gives a "member not found" error.
158158

159-
Note that in Scala 2 all local and anonymous classes could have refinements. But
159+
Note that in Scala 2 all local and anonymous classes could produce values with refined types. But
160160
members defined by such refinements could be selected only with the language import
161161
`reflectiveCalls`.
162162

0 commit comments

Comments
 (0)