Skip to content

Commit 360e5fc

Browse files
committed
rearrange for Filipp
1 parent fa6eafc commit 360e5fc

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

docs/topics/compatibility-guides/compatibility-guide-23.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,51 +186,50 @@ perspective (for example, from Java) is out of the scope of this document.
186186
> - 1.5.0: promote the new functions to Stable; report warnings for old functions with suggestions for replacements
187187
> - 2.3.0: raise the warnings to errors
188188
189+
### Deprecate `Number.toChar()` function
189190

190-
### Deprecate `String.subSequence(start, end)` function
191-
192-
> **Issue**: [KTLC-282](https://youtrack.jetbrains.com/issue/KTLC-282)
191+
> **Issue**: [KT-56822](https://youtrack.jetbrains.com/issue/KT-56822)
193192
>
194193
> **Component**: kotlin-stdlib
195194
>
196195
> **Incompatible change type**: source
197196
>
198-
> **Short summary**: The `String.subSequence(start, end)` function is deprecated. Use the [`String.subSequence(startIndex, endIndex)`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/sub-sequence.html) function instead.
197+
> **Short summary**: The `Number.toChar()` function is deprecated. Use `toInt().toChar()` or the `Char` constructor instead.
199198
>
200199
> **Deprecation cycle**:
201200
>
202-
> - 1.0: report a warning when using `String.subSequence(start, end)`
201+
> - 1.9.0: report a warning when using the `Number.toChar()` function
203202
> - 2.3.0: raise the warning to an error
204203
205-
### Deprecate `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions
204+
### Deprecate `String.subSequence(start, end)` function
206205

207-
> **Issue**: [KTLC-281](https://youtrack.jetbrains.com/issue/KTLC-281)
206+
> **Issue**: [KTLC-282](https://youtrack.jetbrains.com/issue/KTLC-282)
208207
>
209208
> **Component**: kotlin-stdlib
210209
>
211210
> **Incompatible change type**: source
212211
>
213-
> **Short summary**: The `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions are deprecated.
214-
> Use the [`kotlin.io.path.createTempDirectory()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.io.path/create-temp-directory.html) and [`kotlin.io.path.createTempFile()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.io.path/create-temp-file.html) functions instead.
212+
> **Short summary**: The `String.subSequence(start, end)` function is deprecated. Use the [`String.subSequence(startIndex, endIndex)`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/sub-sequence.html) function instead.
215213
>
216214
> **Deprecation cycle**:
217215
>
218-
> - 1.4.20: report a warning when using `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions
216+
> - 1.0: report a warning when using `String.subSequence(start, end)`
219217
> - 2.3.0: raise the warning to an error
220218
221-
### Deprecate `Number.toChar()` function
219+
### Deprecate `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions
222220

223-
> **Issue**: [KT-56822](https://youtrack.jetbrains.com/issue/KT-56822)
221+
> **Issue**: [KTLC-281](https://youtrack.jetbrains.com/issue/KTLC-281)
224222
>
225223
> **Component**: kotlin-stdlib
226224
>
227225
> **Incompatible change type**: source
228226
>
229-
> **Short summary**: The `Number.toChar()` function is deprecated. Use `toInt().toChar()` or the `Char` constructor instead.
227+
> **Short summary**: The `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions are deprecated.
228+
> Use the [`kotlin.io.path.createTempDirectory()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.io.path/create-temp-directory.html) and [`kotlin.io.path.createTempFile()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.io.path/create-temp-file.html) functions instead.
230229
>
231230
> **Deprecation cycle**:
232231
>
233-
> - 1.9.0: report a warning when using the `Number.toChar()` function
232+
> - 1.4.20: report a warning when using `kotlin.io.createTempDirectory()` and `kotlin.io.createTempFile()` functions
234233
> - 2.3.0: raise the warning to an error
235234
236235
### Hide `InputStream.readBytes(Int)` function

0 commit comments

Comments
 (0)