Skip to content

Commit cb52003

Browse files
committed
chore: minor fixes
1 parent d302aac commit cb52003

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/topics/js/js-ir-compiler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ the resulting JavaScript code by removing unused properties, functions, and clas
131131

132132
Unused declarations can appear in cases like:
133133

134-
* A function is inlined and never gets called directly (which happens always except for a few situations).
134+
* A function is inlined and never gets called directly (which always happens except for a few cases).
135135
* A module uses a shared library. Without DCE, parts of the library that you don't use are still included in the resulting bundle.
136136
For example, the Kotlin standard library contains functions for manipulating lists, arrays, char sequences,
137137
adapters for DOM, and so on. All of this functionality would require about 1.3 MB as a JavaScript file. A simple
138-
"Hello, world" application only requires console routines, which is only few kilobytes for the entire file.
138+
"Hello, world" application only requires console routines, which are only a few kilobytes for the entire file.
139139

140140
In the IR compiler, DCE is handled automatically:
141141

@@ -148,7 +148,7 @@ In the IR compiler, DCE is handled automatically:
148148
* `compileDevelopmentLibraryKotlinJs`
149149
* Other Gradle tasks including "development" in their name
150150

151-
* DCE is enabled you build a _production_ bundle, which corresponds to the following Gradle tasks:
151+
* DCE is enabled if you build a _production_ bundle, which corresponds to the following Gradle tasks:
152152

153153
* `browserProductionRun`
154154
* `browserProductionWebpack`

0 commit comments

Comments
 (0)