Skip to content

Commit 0c1d578

Browse files
committed
Improve documentation of Type.valueOfConstant
1 parent 138517d commit 0c1d578

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/scala/quoted/Type.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ object Type:
2121
given of[T <: AnyKind](using Quotes): Type[T] = ???
2222

2323

24-
/** Extracts the value of singleton constant type, None otherwise.
24+
/** Extracts the value of a singleton constant type.
25+
* Returns Some of the value of the type if it is a singleton constant type.
26+
* Returns None if the type is not a singleton constant type.
2527
*
2628
* Example usage:
2729
* ```scala

0 commit comments

Comments
 (0)