Skip to content

Commit a1a8c3c

Browse files
committed
README cosmetics
1 parent bd375c5 commit a1a8c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ is a valid Kotlin `kts` script. Plain and simple, no `main`, no `companion`, jus
198198

199199
Yes, (since v1.6) you can run kotlin source files through `kscript`. By default it will assume a top-level `main` method as entry-point.
200200

201-
However in case you're using a companion object to declare the entry point, you can indicate this via the `//ENTRY` directive:
201+
However in case you're using a companion object to declare the entry point, you need to indicate this via the `//ENTRY` directive:
202202

203203
```kotlin
204204
#!/usr/bin/env kscript
@@ -227,7 +227,7 @@ By means of the `//ENTRY` directive, `kscript` can be used a application launche
227227

228228
### How to adjust the memory settings for the JVM in my scriptlet?
229229

230-
`kscript` allows to provide a `//KOTLIN_OPTS` line followed by parameters passed on to `kotlin` similar to how dependencies are defined:
230+
`kscript` allows to provide a `//KOTLIN_OPTS` directive followed by parameters passed on to `kotlin` similar to how dependencies are defined:
231231
```kotlin
232232
#!/usr/bin/env kscript
233233
//KOTLIN_OPTS -J-Xmx5g -J-server

0 commit comments

Comments
 (0)