Skip to content

Documentation uses HRTB lifetime before declaring it #132879

Open
@Scripter17

Description

The str::rsplit_once docs say <P as Pattern>::Searcher<'a>: for<'a> ReverseSearcher<'a> where the code it's documenting says for<'a> P::Searcher<'a>: ReverseSearcher<'a>.

This almost certainly shows up in other places but this is where I first noticed it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateA-higher-rankedArea: Higher-ranked things (e.g., lifetimes, types, trait bounds aka HRTBs)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions