Skip to content

Commit

Permalink
docs: fix syntax for worksheet imports
Browse files Browse the repository at this point in the history
  • Loading branch information
btrachey authored and tgodzik committed Jan 13, 2025
1 parent 80e7f81 commit a8ad765
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions metals-docs/src/main/scala/docs/WorksheetModifier.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class WorksheetModifier extends StringModifier {
|it in one of the following two ways.
|
|```scala
|// $$dep.`organisation`::artifact:version` style
|import $$dep.`com.lihaoyi::scalatags:0.7.0`
|// $dep.`organisation::artifact:version` style
|import $dep.`com.lihaoyi::scalatags:0.7.0`
|
|// $$ivy.`organisation::artifact:version` style
|import $$ivy.`com.lihaoyi::scalatags:0.7.0`
|// $ivy.`organisation::artifact:version` style
|import $ivy.`com.lihaoyi::scalatags:0.7.0`
|```
|
|`::` is the same as `%%` in sbt, which will append the current Scala binary version
Expand All @@ -60,7 +60,7 @@ class WorksheetModifier extends StringModifier {
|You can also import `scalac` options in a special `$$scalac` import like below:
|
|```scala
|import $$scalac.`-Ywarn-unused`
|import $scalac.`-Ywarn-unused`
|```
|
|### Troubleshooting
Expand Down

0 comments on commit a8ad765

Please sign in to comment.