Skip to content

Commit 99fdca2

Browse files
committed
clearly state responsibilities when using is pure
1 parent 39014d6 commit 99fdca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Routine.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ Calculating 43th prime
134134
Marks a subroutine as I<pure>, that is, it asserts that for the same input, it
135135
will always produce the same output without any additional side effects.
136136
137-
This is a hint to the compiler that it can constant-fold calls to such
138-
functions when the arguments are known at compile time.
137+
This is a promise by the programmer to the compiler that it can constant-fold
138+
calls to such functions when the arguments are known at compile time.
139139
140140
sub double(Numeric:D $x) is pure {
141141
2 * $x;

0 commit comments

Comments
 (0)