Skip to content

Commit

Permalink
Typo fixed in scripts.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vaivanov95 authored and Gedochao committed Jun 25, 2024
1 parent 0425573 commit 86d4852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/guides/scripting/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
passing the directory to Scala CLI

0 comments on commit 86d4852

Please sign in to comment.