Skip to content

Commit 2e72550

Browse files
committed
Refine text
1 parent 693f2e6 commit 2e72550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/intersection-types-spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: "Intersection Types - More Details"
55

66
## Syntax
77

8-
Syntactically, an intersection type is similar to an infix type,
8+
Syntactically, an intersection type `S & T` is similar to an infix type,
99
where the infix operator is `&`.
1010

1111
```
@@ -87,7 +87,7 @@ class C extends A with B {
8787
A & B <: T
8888
```
8989

90-
From the rules above, we can show that `&` is _commutative_: `A & B <: B & A`.
90+
From the rules above, we can show that `&` is _commutative_: `A & B <: B & A` for any type `A` and `B`.
9191
In another word, `A & B` is the same type as `B & A`, in that sense that the two types
9292
have the same values and are subtypes of each other.
9393

0 commit comments

Comments
 (0)