Commit 8fe79bd
committed
Auto merge of #28607 - remram44:doc-fix-str-pattern, r=alexcrichton
Reported by Moonlightning on #rust
> 17:13 EDT < Moonlightning> I think I found a bug in the str::matches() documentation. Was it copied from str::split()? :p
> 17:13 EDT < Moonlightning> Because it says “The pattern can be a simple `&str`, `char`, or a closure that determines the split.”
I changed "determines the split" to "determines if a character matches".
It's not super clear, "determines the split" is not super clear to begin with, maybe this can be made better? On the other hand following the link to Pattern provides enough details.1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
| 718 | + | |
720 | 719 | | |
721 | 720 | | |
722 | 721 | | |
| |||
760 | 759 | | |
761 | 760 | | |
762 | 761 | | |
763 | | - | |
| 762 | + | |
764 | 763 | | |
765 | 764 | | |
766 | 765 | | |
| |||
1096 | 1095 | | |
1097 | 1096 | | |
1098 | 1097 | | |
1099 | | - | |
| 1098 | + | |
1100 | 1099 | | |
1101 | 1100 | | |
1102 | 1101 | | |
| |||
1129 | 1128 | | |
1130 | 1129 | | |
1131 | 1130 | | |
1132 | | - | |
| 1131 | + | |
1133 | 1132 | | |
1134 | 1133 | | |
1135 | 1134 | | |
| |||
1166 | 1165 | | |
1167 | 1166 | | |
1168 | 1167 | | |
1169 | | - | |
1170 | | - | |
| 1168 | + | |
1171 | 1169 | | |
1172 | 1170 | | |
1173 | 1171 | | |
| |||
1214 | 1212 | | |
1215 | 1213 | | |
1216 | 1214 | | |
1217 | | - | |
1218 | | - | |
| 1215 | + | |
1219 | 1216 | | |
1220 | 1217 | | |
1221 | 1218 | | |
| |||
1296 | 1293 | | |
1297 | 1294 | | |
1298 | 1295 | | |
1299 | | - | |
| 1296 | + | |
1300 | 1297 | | |
1301 | 1298 | | |
1302 | 1299 | | |
| |||
1326 | 1323 | | |
1327 | 1324 | | |
1328 | 1325 | | |
1329 | | - | |
| 1326 | + | |
1330 | 1327 | | |
1331 | 1328 | | |
1332 | 1329 | | |
| |||
1346 | 1343 | | |
1347 | 1344 | | |
1348 | 1345 | | |
1349 | | - | |
| 1346 | + | |
1350 | 1347 | | |
1351 | 1348 | | |
1352 | 1349 | | |
| |||
0 commit comments