Skip to content

Commit 12526fb

Browse files
committed
Fix more typos
1 parent 18ac691 commit 12526fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/_docs/reference/other-new-features/preview-defs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: "Preview Definitions"
44
nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/preview-defs.html
55
---
66

7-
New Scala language features or standard library APIs are initially introduced as experimental, but once they become fully implemented and acceppted by the [SIP](https://docs.scala-lang.org/sips/) these can become a preview features.
8-
Preview language features and APIs are guaranteed to be standarized in some next Scala minor release, but allow compiler team to introduce small, possibly binary incompatible, changes based on the community feedback.
7+
New Scala language features or standard library APIs are initially introduced as experimental, but once they become fully implemented and accepted by the [SIP](https://docs.scala-lang.org/sips/) these can become a preview features.
8+
Preview language features and APIs are guaranteed to be standardized in some next Scala minor release, but allow the compiler team to introduce small, possibly binary incompatible, changes based on the community feedback.
99
These can be used by early adopters who can accept the possibility of binary compatibility breakage. For instance, preview features could be used in some internal tool or application. On the other hand, preview features are discouraged in publicly available libraries.
1010

1111
Users can enable access to preview features and definitions by compiling with the `-preview` flag. The flag would enable all preview features and definitions. There is no scheme for enabling only a subset of preview features.
1212

13-
The biggest difference of preview features compared to experimental features is their non-viral behaviour.
13+
The biggest difference of preview features compared to experimental features is their non-viral behavior.
1414
A definition compiled in preview mode (using the `-preview` flag) is not marked as a preview definition itself.
15-
This behaviour allows to use preview features transitively in other compilation units without explicitlly enabled preview mode, as long as it does not directly reference APIs or features marked as preview.
15+
This behavior allows to use preview features transitively in other compilation units without explicitly enabled preview mode, as long as it does not directly reference APIs or features marked as preview.
1616

1717
The [`@preview`](https://scala-lang.org/api/3.x/scala/annotation/internal/preview.html) annotation is used to mark Scala 3 standard library APIs currently available under preview mode.
1818
The rules for `@preview` are similar to [`@experimental`](https://scala-lang.org/api/3.x/scala/annotation/experimental.html) when it comes to accessing, subtyping, overriding or overloading definitions marked with this annotation - all of these can only be performed in compilation units that enable preview mode.
@@ -30,5 +30,5 @@ def usePreviewFeature = previewFeature
3030

3131
```scala
3232
def usePreviewFeatureTransitively = scala.stdlib.usePreviewFeature
33-
def usePreviewFeatureDirectly = scala.stdlib.previewFeature // error - refering to preview definition outside preview scope
33+
def usePreviewFeatureDirectly = scala.stdlib.previewFeature // error - referring to preview definition outside preview scope
3434
```

0 commit comments

Comments
 (0)