Skip to content

Commit 7fde702

Browse files
committed
Fix structural types doc page
1 parent a5bac26 commit 7fde702

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
@@ -131,7 +131,7 @@ than other classes. Here is an example:
131131
trait Vehicle extends reflect.Selectable {
132132
val wheels: Int
133133
}
134-
val i3 = Vehicle with { // i3: Vehicle { val range: Int }
134+
val i3 = new Vehicle { // i3: Vehicle { val range: Int }
135135
val wheels = 4
136136
val range = 240
137137
}

0 commit comments

Comments
 (0)