mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
441217d9b5
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.