Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add str::strip_prefix and str::strip_suffix #66735
Introduces a counterpart for
This was also discussed in https://internals.rust-lang.org/t/pre-pr-path-strip-prefix-counterpart-in-str/11364/.
Click to expand the log.
KodrAus left a comment
Naming wise it looks like we've got a few schemes going here:
Personally, I think
So this looks good to me! I'll open up a tracking issue and circle back, but r=me if anybody beats me to it