Skip to content

Commit cc424f4

Browse files
authored
Fix prose to match code listing for opaque type (#280)
2 parents 9cfb993 + 5935a37 commit cc424f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TSPL.docc/LanguageGuide/OpaqueTypes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ print(flippedTriangle.draw())
121121

122122
This approach to defining a `JoinedShape<T: Shape, U: Shape>` structure
123123
that joins two shapes together vertically, like the code below shows,
124-
results in types like `JoinedShape<FlippedShape<Triangle>, Triangle>`
125-
from joining a flipped triangle with another triangle.
124+
results in types like `JoinedShape<Triangle, FlippedShape<Triangle>>`
125+
from joining a triangle with a flipped triangle.
126126

127127
```swift
128128
struct JoinedShape<T: Shape, U: Shape>: Shape {

0 commit comments

Comments
 (0)