Skip to content

Commit 61d1df5

Browse files
Docs: optimised to optimized
1 parent 7319241 commit 61d1df5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/topics/debug-coroutines-with-idea.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ The tutorial assumes you have prior knowledge of the [coroutines](coroutines-gui
101101

102102
Using IntelliJ IDEA debugger, you can dig deeper into each coroutine to debug your code.
103103

104-
### Optimised-out variables
104+
### Optimized-out variables
105105

106-
If you use `suspend` functions, in the debugger, you might see the "was optimised out" text next to a variable's name:
106+
If you use `suspend` functions, in the debugger, you might see the "was optimized out" text next to a variable's name:
107107
108-
![Variable "a" was optimised out](variable-optimised-out.png)
108+
![Variable "a" was optimized out](variable-optimised-out.png)
109109
110110
This text means that the variable's lifetime was decreased, and the variable doesn't exist anymore.
111-
It is difficult to debug code with optimised variables because you don't see their values.
111+
It is difficult to debug code with optimized variables because you don't see their values.
112112
You can disable this behavior with the `-Xdebug` compiler option.
113113

114114
> __Never use this flag in production__: `-Xdebug` can [cause memory leaks](https://youtrack.jetbrains.com/issue/KT-48678/Coroutine-debugger-disable-was-optimised-out-compiler-feature#focus=Comments-27-6015585.0-0).

docs/topics/debug-flow-with-idea.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ Create a Kotlin [flow](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-cor
102102

103103
![Debug the coroutine](flow-debug-2.png)
104104

105-
### Optimised-out variables
105+
### Optimized-out variables
106106

107-
If you use `suspend` functions, in the debugger, you might see the "was optimised out" text next to a variable's name:
107+
If you use `suspend` functions, in the debugger, you might see the "was optimized out" text next to a variable's name:
108108
109-
![Variable "a" was optimised out](variable-optimised-out.png)
109+
![Variable "a" was optimized out](variable-optimised-out.png)
110110
111111
This text means that the variable's lifetime was decreased, and the variable doesn't exist anymore.
112-
It is difficult to debug code with optimised variables because you don't see their values.
112+
It is difficult to debug code with optimized variables because you don't see their values.
113113
You can disable this behavior with the `-Xdebug` compiler option.
114114

115115
> __Never use this flag in production__: `-Xdebug` can [cause memory leaks](https://youtrack.jetbrains.com/issue/KT-48678/Coroutine-debugger-disable-was-optimised-out-compiler-feature#focus=Comments-27-6015585.0-0).

0 commit comments

Comments
 (0)