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

Clarify behavior of slice prefix/suffix operations in case of equality #121634

Merged
merged 1 commit into from
Mar 2, 2024

Commits on Feb 26, 2024

  1. Clarify behavior of slice prefix/suffix operations in case of equality

    Operations such as starts_with, ends_with, strip_prefix and strip_suffix
    can be either strict (do not consider a slice to be a prefix/suffix of
    itself) or not. In Rust's case, they are not strict. Add a few phrases to
    the documentation to clarify this.
    RavuAlHemio committed Feb 26, 2024
    Configuration menu
    Copy the full SHA
    c9a4a4a View commit details
    Browse the repository at this point in the history