Skip to content

Commit 66e23ab

Browse files
authored
Document Str.Numeric uses &val semantics
1 parent d6dde69 commit 66e23ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Str.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ Defined as:
316316
317317
method Numeric(Str:D: --> Numeric:D)
318318
319-
Coerces the string to L<Numeric>. L<Fails|/routine/fail> with C<X::Str::Numeric>
320-
if the coercion cannot be done.
319+
Coerces the string to L<Numeric> using semantics equivalent to L<val> routine.
320+
L<Fails|/routine/fail> with C<X::Str::Numeric> if the coercion to a number cannot be done.
321321
322322
Only Unicode characters with property C<Nd>, as well as leading and trailing
323323
whitespace are allowed, with the special case of the empty string being coerced

0 commit comments

Comments
 (0)