Commit 6639604
authored
Rollup merge of rust-lang#95753 - ChayimFriedman2:patch-1, r=dtolnay
Correct safety reasoning in `str::make_ascii_{lower,upper}case()`
I don't understand why the previous comment was used (it was inserted in rust-lang#66564), but it doesn't explain why these functions are safe, only why `str::as_bytes{_mut}()` are safe.
If someone thinks they make perfect sense, I'm fine with closing this PR.1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2407 | 2407 | | |
2408 | 2408 | | |
2409 | 2409 | | |
2410 | | - | |
| 2410 | + | |
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
| |||
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
2437 | | - | |
| 2437 | + | |
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
| |||
0 commit comments