From 86d48529ad804c49ce7f6dd3e07cd7444906bd63 Mon Sep 17 00:00:00 2001 From: Vitalii Ivanov <43709903+vaivanov95@users.noreply.github.com> Date: Sat, 22 Jun 2024 12:20:56 -0300 Subject: [PATCH] Typo fixed in scripts.md --- website/docs/guides/scripting/scripts.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/scripting/scripts.md b/website/docs/guides/scripting/scripts.md index 8ed91a7ff9..d35203afef 100644 --- a/website/docs/guides/scripting/scripts.md +++ b/website/docs/guides/scripting/scripts.md @@ -287,7 +287,7 @@ The Class Wrapper's behaviour is the default described throughout the documentat #### Object Wrapper This wrapper is an alternative to the [Class Wrapper](#class-wrapper) and can be forced with `--object-wrapper` flag and `>// using objectWrapper` directive. -It is used by default for Scala 3 scripts compiled for JS platform. Can suffer from deadlocks then using multithreaded code. +It is used by default for Scala 3 scripts compiled for JS platform. Can suffer from deadlocks when using multithreaded code. **Limitations** - When running background threads from the script and using e.g. `scala.concurrent.Await` on them may result in a deadlock due to unfinished initialization of the wrapper object. @@ -319,4 +319,4 @@ On the other hand: - You can pass a single "entry point" script as input to Ammonite, and Ammonite finds the scripts it depends on via the `import $file` directives - Scala CLI requires all scripts to be added with `//> using file ...` or to be passed beforehand, either one-by-one, or by putting them in a directory, and - passing the directory to Scala CLI \ No newline at end of file + passing the directory to Scala CLI