Skip to content

Commit 8809972

Browse files
Apply suggestions from code review
Co-authored-by: Fengyun Liu <[email protected]>
1 parent 107c36b commit 8809972

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/scala/compiletime/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ package object compiletime {
5151
end extension
5252

5353
/** Checks at compiletime that the provided values is a constant after
54-
* inlining and constant folding and returns the value.
54+
* inlining and constant folding.
5555
*
5656
* Usage:
5757
* ```scala
5858
* inline def twice(inline n: Int): Int =
59-
* requireConst(n) // static assertion that the parameter `n` is a constant
59+
* requireConst(n) // compile-time assertion that the parameter `n` is a constant
6060
* n + n
6161
*
6262
* twice(1)

0 commit comments

Comments
 (0)