Skip to content

Commit bd3df7f

Browse files
committed
Address review
1 parent 7c48b54 commit bd3df7f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

website/docs/guides/dependencies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ scala-cli compile Hello.scala --dependency dev.zio::zio:1.0.9
1111
```
1212

1313
Note that `--dependency` is only meant as a convenience. You should favour
14-
adding dependencies in the sources themselves via [using directives](./guides/configuration.md#special-imports).
14+
adding dependencies in the sources themselves via [using directives](./guides/configuration.md#special-imports). However, `--dependency` CLI option takes precedence over using directives, so it can be used to override version temporarily.
1515

1616
You can also add repositories on the command-line, via `--repository`:
1717
```bash

website/docs/guides/scala-native.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Scala Native
33
sidebar_position: 22
44
---
55

6+
Scala Native only works with Scala `2.13.x` and `2.12.x` however we recommend using `2.13.x`.
7+
68
- requires LLVM toolchain, see requirements on Scala Native website
79

810
- enable via the command-line using `--native`

website/docs/guides/using-directives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebar_position: 24
44
---
55

66
:::warning
7-
Using directives are experimental and may change in future versions of Scala CLI
7+
Using directives is an experimental language extension that may change in future versions of Scala CLI
88
:::
99

1010
Using directives mechanism allows to define configuration within the .scala sources itself eliminating need for build tools to define dedicated configuration syntax. Scala compiler treats using directives like special kinds of comments.
@@ -25,7 +25,7 @@ For now we recommend using comment-flavor (e.g. `// using scala 3.0.2`) and we w
2525
Until using directives becomes a part of Scala specification, this is the only way that guarantee that your code will work well with IDE, formatters or similar tool.
2626
:::
2727

28-
Using directives can be declared **before any other scala code**.
28+
Using directives can be declared only **before any other scala code**.
2929

3030
Using directives contributes settings to the whole compilation scope where given .scala file is defined so a library or compiler option defined in one file applies to the whole application or test dependeding if source is test or not.
3131

0 commit comments

Comments
 (0)