File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff 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()
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments