Skip to content

Commit 7a35bf8

Browse files
committed
Fix typo in docs
1 parent c15ff7b commit 7a35bf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/docs/reference/dropped/weak-conformance.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Dropped: Weak Conformance
66
In some situations, Scala used a _weak conformance_ relation when
77
testing type compatibility or computing the least upper bound of a set
88
of types. The principal motivation behind weak conformance was to
9-
make as expression like this have type `List[Double]`:
9+
make an expression like this have type `List[Double]`:
1010

1111
List(1.0, math.sqrt(3.0), 0, -3.3) // : List[Double]
1212

@@ -37,6 +37,7 @@ assigning a type to a constant expression. The new rule is:
3737
- the alternatives of an if-then-else or match expression, or
3838
- the body and catch results of a try expression,
3939

40+
4041
and all expressions have primitive numeric types, but they do not
4142
all have the same type, then the following is attempted: Every
4243
constant expression `E` in `Es` is widened to the least primitive

0 commit comments

Comments
 (0)