Skip to content

Commit ecebebb

Browse files
committed
Fix uncompiling snippets
1 parent c6a9836 commit ecebebb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

library/src/scala/annotation/MainAnnotation.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package scala.annotation
1111
* - a call to `command.run` with the closure of user-main applied to all arguments.
1212
*
1313
* Example:
14-
* ```scala
14+
* ```scala sc:nocompile
1515
* /** Sum all the numbers
1616
* *
1717
* * @param first Fist number to sum
@@ -20,7 +20,7 @@ package scala.annotation
2020
* @myMain def sum(first: Int, second: Int = 0, rest: Int*): Int = first + second + rest.sum
2121
* ```
2222
* generates
23-
* ```scala
23+
* ```scala sc:nocompile
2424
* object foo {
2525
* def main(args: Array[String]): Unit = {
2626
* val mainAnnot = new myMain()

library/src/scala/compiletime/ops/string.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ object string:
5555
* An index ranges from 0 to Length[S] - 1. The first Char of
5656
* the sequence is at index 0, the next at index 1, and so on.
5757
* ```scala
58+
* //{
59+
* import string._
60+
* //}
5861
* val c: CharAt["hello", 0] = 'h'
5962
* ```
6063
* @syntax markdown

0 commit comments

Comments
 (0)