File tree 3 files changed +20
-12
lines changed
3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -1637,10 +1637,11 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
1637
1637
* val q: Quotes = summon[Quotes]
1638
1638
* import q.reflect._
1639
1639
* //}
1640
- * val intArgs = List(Literal(Constant (1)), Literal(Constant (2)))
1640
+ * val intArgs = List(Literal(IntConstant (1)), Literal(IntConstant (2)))
1641
1641
* Typed(
1642
- * Repeated(intArgs, TypeTree.of[Int]),
1643
- * Inferred(defn.RepeatedParamClass.typeRef.appliedTo(TypeRepr.of[Int]))
1642
+ * Repeated(intArgs, TypeTree.of[Int]),
1643
+ * Inferred(defn.RepeatedParamClass.typeRef.appliedTo(TypeRepr.of[Int]))
1644
+ * )
1644
1645
* //{
1645
1646
* }
1646
1647
* //}
Original file line number Diff line number Diff line change @@ -15,14 +15,16 @@ import scala.annotation.implicitNotFound
15
15
* be rewritten to jumps.
16
16
*
17
17
* Example usage:
18
+ *
19
+ * ```scala
20
+ * import scala.util.boundary, boundary.break
18
21
*
19
- * import scala.util.boundary, boundary.break
20
- *
21
- * def firstIndex[T](xs: List[T], elem: T): Int =
22
- * boundary:
23
- * for (x, i) <- xs.zipWithIndex do
24
- * if x == elem then break(i)
25
- * -1
22
+ * def firstIndex[T](xs: List[T], elem: T): Int =
23
+ * boundary:
24
+ * for (x, i) <- xs.zipWithIndex do
25
+ * if x == elem then break(i)
26
+ * -1
27
+ * ```
26
28
*/
27
29
object boundary :
28
30
Original file line number Diff line number Diff line change @@ -2359,7 +2359,10 @@ object ScaladocConfigs {
2359
2359
.add(VersionsDictionaryUrl (" https://scala-lang.org/api/versions.json" ))
2360
2360
.add(DocumentSyntheticTypes (true ))
2361
2361
.add(SnippetCompiler (List (
2362
- s " ${dottyLibRoot}/scala=compile " ,
2362
+ s " $dottyLibRoot/src/scala=compile " ,
2363
+ s " $dottyLibRoot/src/scala/compiletime=compile " ,
2364
+ s " $dottyLibRoot/src/scala/util=compile " ,
2365
+ s " $dottyLibRoot/src/scala/util/control=compile "
2363
2366
)))
2364
2367
.add(SiteRoot (" docs" ))
2365
2368
.add(ApiSubdirectory (true ))
@@ -2375,7 +2378,9 @@ object ScaladocConfigs {
2375
2378
.add(SnippetCompiler (
2376
2379
List (
2377
2380
s " $dottyLibrarySrc/scala/quoted=compile " ,
2378
- s " $dottyLibrarySrc/scala/compiletime=compile "
2381
+ s " $dottyLibrarySrc/scala/compiletime=compile " ,
2382
+ s " $dottyLibrarySrc/scala/util=compile " ,
2383
+ s " $dottyLibrarySrc/scala/util/control=compile "
2379
2384
)
2380
2385
))
2381
2386
.add(CommentSyntax (List (
You can’t perform that action at this time.
0 commit comments