File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ extension String.UTF16View {
720
720
///
721
721
/// - Complexity: This measures the UTF-16 distance of `idx` from its nearest
722
722
/// breadcrumb index (rounding down), so on average it needs to look at
723
- /// `breadcrumbStride / 2` UTF-8 code units. (In addition to the O(log(n))
723
+ /// `breadcrumbStride / 2` UTF-16 code units. (In addition to the O(log(n))
724
724
/// cost of looking up the nearest breadcrumb, and the amortizable O(n)
725
725
/// cost of generating the breadcrumbs in the first place.)
726
726
@usableFromInline
@@ -758,7 +758,7 @@ extension String.UTF16View {
758
758
///
759
759
/// - Complexity: This iterates UTF-16 code units starting from the
760
760
/// nearest breadcrumb to `offset` (rounding down), so on
761
- /// average it needs to look at `breadcrumbStride / 2` UTF-8 code
761
+ /// average it needs to look at `breadcrumbStride / 2` UTF-16 code
762
762
/// units. (In addition to the O(1) cost of looking up the nearest
763
763
/// breadcrumb, and the amortizable O(n) cost of generating the
764
764
/// breadcrumbs in the first place.)
You can’t perform that action at this time.
0 commit comments