Skip to content

Commit 9cd81d2

Browse files
authored
Merge pull request #84422 from valeriyvan/UTF8SpanIterators
Fix doc comments in UTF8SpanIterators.swift
2 parents 384f69b + 9bc85b7 commit 9cd81d2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/public/core/UTF8SpanIterators.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extension UTF8Span {
9494
}
9595

9696

97-
/// Advance `codeUnitOffset` to the end of the current scalar, without
97+
/// Advance `currentCodeUnitOffset` to the end of the current scalar, without
9898
/// decoding it.
9999
///
100100
/// Returns the number of `Unicode.Scalar`s skipped over, which can be 0
@@ -113,7 +113,7 @@ extension UTF8Span {
113113
return 1
114114
}
115115

116-
/// Advance `codeUnitOffset` to the end of `n` scalars, without decoding
116+
/// Advance `currentCodeUnitOffset` to the end of `n` scalars, without decoding
117117
/// them.
118118
///
119119
/// Returns the number of `Unicode.Scalar`s skipped over, which can be
@@ -130,7 +130,7 @@ extension UTF8Span {
130130
return numSkipped
131131
}
132132

133-
/// Move `codeUnitOffset` to the start of the previous scalar, without
133+
/// Move `currentCodeUnitOffset` to the start of the previous scalar, without
134134
/// decoding it.
135135
///
136136
/// Returns the number of `Unicode.Scalar`s skipped over, which can be 0
@@ -149,7 +149,7 @@ extension UTF8Span {
149149
return 1
150150
}
151151

152-
/// Move `codeUnitOffset` to the start of the previous `n` scalars,
152+
/// Move `currentCodeUnitOffset` to the start of the previous `n` scalars,
153153
/// without decoding them.
154154
///
155155
/// Returns the number of `Unicode.Scalar`s skipped over, which can be
@@ -192,7 +192,7 @@ extension UTF8Span {
192192
self.currentCodeUnitOffset = codeUnits._scalarAlignForwards(i)
193193
}
194194

195-
// TODO: for below, verify that there is no path to UB, just garabage-data or guaranteed
195+
// TODO: for below, verify that there is no path to UB, just garbage-data or guaranteed
196196
// trap!
197197

198198
/// Reset this iterator to `codeUnitOffset`, skipping _all_ safety
@@ -334,7 +334,7 @@ extension UTF8Span {
334334
return result
335335
}
336336

337-
/// Advance `codeUnitOffset` to the end of the current `Character`,
337+
/// Advance `currentCodeUnitOffset` to the end of the current `Character`,
338338
/// without constructing it.
339339
///
340340
/// Returns the number of `Character`s skipped over, which can be 0
@@ -351,7 +351,7 @@ extension UTF8Span {
351351
return 1
352352
}
353353

354-
/// Advance `codeUnitOffset` to the end of `n` `Characters`, without
354+
/// Advance `currentCodeUnitOffset` to the end of `n` `Characters`, without
355355
/// constructing them.
356356
///
357357
/// Returns the number of `Character`s skipped over, which can be
@@ -366,7 +366,7 @@ extension UTF8Span {
366366
return numSkipped
367367
}
368368

369-
/// Move `codeUnitOffset` to the start of the previous `Character`,
369+
/// Move `currentCodeUnitOffset` to the start of the previous `Character`,
370370
/// without constructing it.
371371
///
372372
/// Returns the number of `Character`s skipped over, which can be 0
@@ -384,7 +384,7 @@ extension UTF8Span {
384384

385385
}
386386

387-
/// Move `codeUnitOffset` to the start of the previous `n` `Character`s,
387+
/// Move `currentCodeUnitOffset` to the start of the previous `n` `Character`s,
388388
/// without constructing them.
389389
///
390390
/// Returns the number of `Character`s skipped over, which can be

0 commit comments

Comments
 (0)