Skip to content

docs for str::find say closure but don't use a closuer #45327

Closed
@steveklabnik

Description

@steveklabnik

https://doc.rust-lang.org/stable/std/primitive.str.html#examples-21

More complex patterns with closures:

... but it uses point-free style, not closures.

We should probably show both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions