Skip to content

Conversation

@serid
Copy link
Contributor

@serid serid commented Jan 11, 2026

The problem

Running
substr("Long string", 8, &say);
prints 3, which contradicts the documentation stating "[Callables] will be invoked with the length of the original string".

Solution provided

This commit fixes documentation, reflecting that chars is invoked with remaining character count after from.

@arkiuat arkiuat merged commit 8eabb89 into Raku:main Jan 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants