Skip to content

Commit fd699cc

Browse files
khouari1ligee
authored andcommitted
Small typo fixes in jvm-maven-deps
1 parent 6125fc5 commit fd699cc

File tree

1 file changed

+3
-3
lines changed
  • jvm/basic/jvm-maven-deps/script/src/main/kotlin/org/jetbrains/kotlin/script/examples/jvm/resolve/maven

1 file changed

+3
-3
lines changed

jvm/basic/jvm-maven-deps/script/src/main/kotlin/org/jetbrains/kotlin/script/examples/jvm/resolve/maven/scriptDef.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ abstract class ScriptWithMavenDeps
3030

3131
object ScriptWithMavenDepsConfiguration : ScriptCompilationConfiguration(
3232
{
33-
// adds implicit import statements (in this case `implort kotlin.script.experimental.dependencies.DependsOn`, etc.)
33+
// adds implicit import statements (in this case `import kotlin.script.experimental.dependencies.DependsOn`, etc.)
3434
// to each script on compilation
3535
defaultImports(DependsOn::class, Repository::class)
3636

3737
jvm {
3838
// the dependenciesFromCurrentContext helper function extracts the classpath from current thread classloader
3939
// and take jars with mentioned names to the compilation classpath via `dependencies` key.
40-
// to add the whole classpath for the classloader without check for jar presense, use
40+
// to add the whole classpath for the classloader without check for jar presence, use
4141
// `dependenciesFromCurrentContext(wholeClasspath = true)`
4242
dependenciesFromCurrentContext(
4343
"script", // script library jar name
@@ -46,7 +46,7 @@ object ScriptWithMavenDepsConfiguration : ScriptCompilationConfiguration(
4646
}
4747
// section that callbacks during compilation
4848
refineConfiguration {
49-
// the callback called than any of the listed file-level annotations are encountered in the compiled script
49+
// the callback called when any of the listed file-level annotations are encountered in the compiled script
5050
// the processing is defined by the `handler`, that may return refined configuration depending on the annotations
5151
onAnnotations(DependsOn::class, Repository::class, handler = ::configureMavenDepsOnAnnotations)
5252
}

0 commit comments

Comments
 (0)