Skip to content

Commit e79140a

Browse files
committed
akhin: release review
1 parent 4152414 commit e79140a

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

docs/src/md/kotlin.core/builtins.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ It is the type of the result of [string interpolation][String interpolation expr
200200
public override final fun hashCode(): Int
201201
```
202202
203-
These methods are defined to their default behaviour: only the same entry of an enum class is equal to itself and no other object.
203+
These member functions are defined to their default behaviour: only the same entry of an enum class is equal to itself and no other object.
204204
Hash implementation is required to be consistent, but unspecified.
205205
206-
> Note: the presence of these final methods ensures the semantics of equality and comparison for the enumeration objects, as they cannot be overridden by the user.
206+
> Note: the presence of these final member functions ensures the semantics of equality and comparison for the enumeration objects, as they cannot be overridden by the user.
207207
208208
* ```kotlin
209209
protected final fun clone(): Any

docs/src/md/kotlin.core/cdfa.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,9 +1354,9 @@ There are several kinds of effects:
13541354
**Calls-in-place** effect of function $F$ for a function-type parameter $P$ specifies that for every call of $F$ parameter $P$ will be also invoked as a function.
13551355
This effect may also have one of the three invocation types:
13561356

1357-
- *At-least-once*, meaning that the $P$ will be invoked at least once;
1358-
- *Exactly-once*, meaning that the $P$ will be invoked exactly once;
1359-
- *At-most-once*, meaning that the $P$ will be invoked at most once.
1357+
- *At-least-once*, meaning that $P$ will be invoked at least once;
1358+
- *Exactly-once*, meaning that $P$ will be invoked exactly once;
1359+
- *At-most-once*, meaning that $P$ will be invoked at most once.
13601360

13611361
These effects change the call graph that is produced for a function call of $F$ when supplied a lambda-expression parameter for $P$.
13621362
Without any effect, the graph looks like this:
@@ -1472,7 +1472,7 @@ If the corresponding parameter $P$ is introduced with *at-most-once* effect, thi
14721472
v
14731473
```
14741474

1475-
This allows the control-flow information to be extracted from lambda expression according to the policy of their invocation.
1475+
This allows the control-flow information to be extracted from lambda expression according to the policy of its invocation.
14761476

14771477
**Returns-implies-condition** effect of function $F$ for a boolean parameter $P$ specifies that if, when invoked normally, a call to $F$ returns, $P$ is assumed to be true.
14781478
For a function call

docs/src/md/kotlin.core/coroutines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ When the cached `intercepted` continuation is no longer needed, it is released u
223223
#### Coroutine intrinsics
224224

225225
Accessing the low-level continuations is performed using a limited number of built-in intrinsic functions, which form the complete coroutine API.
226-
The rest of asynchronous programming support is provided as a Kotlin library.
226+
The rest of asynchronous programming support is provided as a Kotlin library [`kotlinx.coroutines`](https://github.com/Kotlin/kotlinx.coroutines).
227+
227228
The complete built-in API for working with coroutines is shown below (all of these are declared in package `kotlin.coroutines.intrinsics` of the standard library).
228229

229230
```kotlin

docs/src/md/kotlin.core/declarations.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ Annotation classes cannot be constructed directly unless passed as arguments to
645645
#### Value class declaration
646646
647647
> Note: as of Kotlin 1.5.0, user-defined value classes are an experimental feature.
648-
> There is, however, a number of value classes in Kotlin standard library
648+
> There is, however, a number of value classes in Kotlin standard library.
649649
650650
A class may be declared a **value** class by using `inline` or `value` modifier in its declaration.
651651
Value classes must adhere to the following limitations:
@@ -660,8 +660,7 @@ Value classes must adhere to the following limitations:
660660
* They must not have any base classes besides `kotlin.Any`;
661661
* No other properties of this class may have backing fields.
662662
663-
> Note: `inline` modifier for value classes is supported as a legacy feature for compatibility with Kotlin 1.4
664-
> experimental inline classes and will be deprecated in the future
663+
> Note: `inline` modifier for value classes is supported as a legacy feature for compatibility with Kotlin 1.4 experimental inline classes and will be deprecated in the future.
665664
666665
Value classes implicitly override `equals` and `hashCode` member functions of `kotlin.Any` by delegating them to their only data property.
667666
Unless `toString` is overriden by the value class definition, it is also implicitly overriden by delegating to the data property.
@@ -670,7 +669,7 @@ This also means that the property may be boxed back to the value class by using
670669
671670
Due to these restrictions, it is highly discouraged to use value classes with the [reference equality operators][Reference equality expressions].
672671
673-
> Note: in the future versions of Kotlin, value classes may be allowed to have more than one data property
672+
> Note: in the future versions of Kotlin, value classes may be allowed to have more than one data property.
674673
675674
#### Interface declaration
676675

docs/src/md/kotlin.core/statements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ All of these operators are overloadable operator functions with the following ex
6767

6868
> Note: before Kotlin version 1.3, there were additional overloadable functions for `%` called `mod`/`modAssign`
6969
70-
After the expansion, the resulting [function call expression][Function calls and property access] or [simple assignment][Simple assignments] is processed according to their corresponding rules and overload resolution and type checking are performed.
70+
After the expansion, the resulting [function call expression][Function calls and property access] or [simple assignment][Simple assignments] is processed according to their corresponding rules, and overload resolution and type checking are performed.
7171
If both expansion variants result in correctly resolved and inferred code, this should be reported as an operator overloading ambiguity.
7272
If only one of the expansion variants can be resolved correctly, this variant is picked as the correct one.
7373
If neither of variants result in correct code, the operator calls must be reported as unresolved.
7474

7575
> Example: consider the following compound operator statement: `x[y] += z`.
7676
> The corresponding expansion variants are `x.get(y).plusAssign(z)` and `x.set(x.get(y).plus(z))` according to expansion rules for corresponding operators.
77-
> If, the call to `set` in the second variant results in resolution or inference error, the whole corresponding expansion is deemed unresolved and the first variant is picked if applicable.
77+
> If, for example, the call to `set` in the second variant results in resolution or inference error, the whole corresponding expansion is deemed unresolved and the first variant is picked if applicable.
7878
7979
> Note: although for most real-world use cases operators `++` and `--` are similar to operator assignments, in Kotlin they are expressions and are described in the [corresponding section][Expressions-expressions] of this specification.
8080

docs/src/md/kotlin.core/type-inference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ TODO(Lambda analysis order (and the order of overloading vs type inference in ge
534534
535535
### Bare type argument inference
536536
537-
Bare type argument inference is a special kind of type inference where, given a type $T$ and a constructor $TC$ the type arguments $A_0, A_1 \ldots A_N$ are inferred such that $TC[A_0, A_1 \ldots A_N] <: S$ where $T <: S$.
537+
Bare type argument inference is a special kind of type inference where, given a type $T$ and a constructor $TC$, the type arguments $A_0, A_1 \ldots A_N$ are inferred such that $TC[A_0, A_1 \ldots A_N] <: S$ where $T <: S$.
538538
It is used together with *bare types* syntax sugar that can be employed in [type checking][Type-checking expressions] and [casting][Cast expressions] operators.
539539
The process is performed as follows.
540540
@@ -551,7 +551,7 @@ If $T$ is a nullable type $U?$, the steps given above are performed for its non-
551551
552552
## Builder-style type inference
553553
554-
Some functions or parameters of functions in the standard library are annotated with the special [`@BuilderInference`][Built-in annotations] annotation, making call to these functions eligible for the special kind of type inference: **builder-style type inference**.
554+
Some functions or parameters of functions in the standard library are annotated with the special [`@BuilderInference`][Built-in annotations] annotation, making calls to these functions eligible for the special kind of type inference: **builder-style type inference**.
555555
In order to allow builder-style inference for a function parameter, this parameter must hold the following properties:
556556
557557
- It must be of an extension-function type;

0 commit comments

Comments
 (0)