Skip to content

Commit d0ab76f

Browse files
committed
Fix typos
1 parent 587f3b4 commit d0ab76f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_docs/reference/experimental/into-modifier.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For Scala 3 code, the `into` modifier is preferred, because it adheres to the pr
7373

7474
## Restrictions
7575

76-
The `into` modifier is only allowed in the types method parameters. It can be given either for the whole type, or some result type of a top-level function type, but not anywhere else. The `into` modifier does not propagate outside the method. In particular, a partially applied method does not propagate `into` modifiers to its result.
76+
The `into` modifier is only allowed in the types of method parameters. It can be given either for the whole type, or some result type of a top-level function type, but not anywhere else. The `into` modifier does not propagate outside the method. In particular, a partially applied method does not propagate `into` modifiers to its result.
7777

7878
**Example:**
7979

@@ -117,4 +117,4 @@ IntoType ::= [‘into’] IntoTargetType
117117
IntoTargetType ::= Type
118118
| FunTypeArgs (‘=>’ | ‘?=>’) IntoType
119119
```
120-
As the grammar shows, `into` can only applied to the type of a parameter; it is illegal in other positions. Also, `into` modifiers in vararg types have to be enclosed in parentheses.
120+
As the grammar shows, `into` can only applied in the type of a parameter; it is illegal in other positions. Also, `into` modifiers in vararg types have to be enclosed in parentheses.

library/src/scala/annotation/internal/$into.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import annotation.experimental
66
* `annotation` gets mapped to `$into` by the compiler in all places where
77
* conversions should be allowed. The reason for the split into two annotations
88
* is that `annotation.into` is given in source code and may propagate in unspecified
9-
* ways through type inference. By contrast `$into` is constrained to be occur only
9+
* ways through type inference. By contrast `$into` is constrained to occur only
1010
* on parameters of method types. This makes implicit conversion insertion
1111
* predictable and independent of the un-specified aspects of type inference.
1212
*/

0 commit comments

Comments
 (0)