We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107c36b commit 8809972Copy full SHA for 8809972
library/src/scala/compiletime/package.scala
@@ -51,12 +51,12 @@ package object compiletime {
51
end extension
52
53
/** Checks at compiletime that the provided values is a constant after
54
- * inlining and constant folding and returns the value.
+ * inlining and constant folding.
55
*
56
* Usage:
57
* ```scala
58
* inline def twice(inline n: Int): Int =
59
- * requireConst(n) // static assertion that the parameter `n` is a constant
+ * requireConst(n) // compile-time assertion that the parameter `n` is a constant
60
* n + n
61
62
* twice(1)
0 commit comments