Skip to content

Commit e5e4a4a

Browse files
adamwmichelou
authored andcommitted
Fix usage example in Quotes for TypeRepr.asType
Using the example gave the following error: `$` for quote pattern varable is not supported anymore. Use lower cased variable name without the `$` instead.
1 parent d875c16 commit e5e4a4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
23422342
* Usage:
23432343
* ```scala
23442344
* typeRepr.asType match
2345-
* case '[$t] =>
2345+
* case '[t] =>
23462346
* '{ val x: t = ... }
23472347
* ```
23482348
* @syntax markdown

0 commit comments

Comments
 (0)