Skip to content

Commit afbcfd7

Browse files
oderskyb-studiosShapelessCat
authored
Apply suggestions from code review
Co-authored-by: Jonathan <[email protected]> Co-authored-by: Lan, Jian <[email protected]>
1 parent 9359dfd commit afbcfd7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

docs/docs/reference/changed-features/operators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ val x: String or Int = ...
6060

6161
### Motivation
6262

63-
The purpose of the `infix` modifier is to achieve consistency actross a code base in how a method or type is applied. The idea is that the author of a method decides whether that method should be applied as an infix operator or in a regular application. Use sites then implement that decision consistently.
63+
The purpose of the `infix` modifier is to achieve consistency across a code base in how a method or type is applied. The idea is that the author of a method decides whether that method should be applied as an infix operator or in a regular application. Use sites then implement that decision consistently.
6464

6565
### Details
6666

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ val i3 = new Vehicle: // i3: Vehicle
146146
val wheels = 4
147147
val range = 240
148148

149-
i3.range: // error: range is not a member of `Vehicle`
149+
i3.range // error: range is not a member of `Vehicle`
150150
```
151151
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
152152
adding any refinements. Hence, `i3` now has just type `Vehicle` and the selection `i3.range` gives a "member not found" error.

docs/docs/reference/other-new-features/explicit-nulls.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ Specifically, we patch
105105
* The first two rules are easy: we nullify reference types but not value types.
106106

107107
```java
108-
class C:
109-
String s;
110-
int x;
108+
class C {
109+
String s;
110+
int x;
111+
}
111112
```
112113
==>
113114
```scala

0 commit comments

Comments
 (0)