Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix questionable suggestion in strutils docs #19765

Merged
merged 2 commits into from
May 6, 2022
Merged

Conversation

ZoomRmc
Copy link
Contributor

@ZoomRmc ZoomRmc commented May 5, 2022

  • Removes the recommendation to pass a string slice for getting a relative index for find and rfind functions, as this currently makes a string copy, while a simple subtraction is enough.

  • Docstring for SkipTable type.

- Removes the recommendation to pass a string slice for getting a relative
index for `find` and `rfind` functions, as this currently makes a string
copy, while a simple subtraction is enough.

- Docstring for `SkipTable` type.
@ZoomRmc
Copy link
Contributor Author

ZoomRmc commented May 5, 2022

Screenshot of the rendered docs, per @xflywind's request (identical one-line changes omitted).

@ringabout
Copy link
Member

Looks good to me

@Araq Araq merged commit 0455d24 into nim-lang:devel May 6, 2022
@ZoomRmc ZoomRmc deleted the finddocs branch May 6, 2022 09:49
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