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

Return the delimiter from slice::split_once #119799

Commits on Jan 10, 2024

  1. return the delimiter from slice::(r)split_once

    This is a departure from the str::split_once API that the slice methods
    were based on. The justification is that for arbitrary T, the split
    element and be complex and the relationship between the split element
    and the predicate can be more indirect than with typical str patterns.
    Benjamin-L committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    17ec183 View commit details
    Browse the repository at this point in the history