Commit 9f41f33
authored
fix: make Substring.beq reflexive (#10552)
This PR ensures that `Substring.beq` is reflexive, and in particular
satisfies the equivalence `ss1 == ss2 <-> ss1.toString = ss2.toString`.
Closes #10511.
Note: I also fixed a strange line in the `String.extract` documentation
which looks like it may have been a copypasta, and added another example
to show how invalid UTF8 positions work, but the doc also makes a point
of saying that it is unspecified so maybe it would be better not to have
the example? 🤷1 parent 0550609 commit 9f41f33
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2343 | 2343 | | |
2344 | 2344 | | |
2345 | 2345 | | |
2346 | | - | |
| 2346 | + | |
| 2347 | + | |
2347 | 2348 | | |
2348 | 2349 | | |
2349 | 2350 | | |
| |||
3410 | 3411 | | |
3411 | 3412 | | |
3412 | 3413 | | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
3413 | 3422 | | |
3414 | 3423 | | |
3415 | 3424 | | |
3416 | 3425 | | |
3417 | 3426 | | |
3418 | 3427 | | |
3419 | 3428 | | |
| 3429 | + | |
| 3430 | + | |
3420 | 3431 | | |
3421 | 3432 | | |
3422 | 3433 | | |
| |||
0 commit comments