File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,7 @@ extension String.Index {
16
16
///
17
17
/// If the index passed as `sourcePosition` represents the start of an
18
18
/// extended grapheme cluster---the element type of a string---then the
19
- /// initializer succeeds. If the index instead represents the position of a
20
- /// Unicode scalar within an extended grapheme cluster or the position of an
21
- /// encoded Unicode scalar value, the result is `nil`.
19
+ /// initializer succeeds.
22
20
///
23
21
/// The following example converts the position of the Unicode scalar `"e"`
24
22
/// into its corresponding position in the string. The character at that
@@ -43,7 +41,7 @@ extension String.Index {
43
41
/// let nextScalarsIndex = cafe.unicodeScalars.index(after: scalarsIndex)
44
42
/// let nextStringIndex = String.Index(nextScalarsIndex, within: cafe)
45
43
///
46
- /// print(nextIndex )
44
+ /// print(nextStringIndex )
47
45
/// // Prints "nil"
48
46
///
49
47
/// - Parameters:
Original file line number Diff line number Diff line change @@ -507,8 +507,8 @@ public struct Unsafe${Mutable}RawBufferPointer
507
507
/// Initializes the buffer's memory with the given elements, binding the
508
508
/// initialized memory to the elements' type.
509
509
///
510
- /// When calling the `initialize (as:from:)` method on a buffer `b`, the
511
- /// memory referenced by `b` must be uninitialized or initialized to a
510
+ /// When calling the `initializeMemory (as:from:)` method on a buffer `b`,
511
+ /// the memory referenced by `b` must be uninitialized or initialized to a
512
512
/// trivial type, and must be properly aligned for accessing `S.Element`.
513
513
/// The buffer must contain sufficient memory to accommodate
514
514
/// `source.underestimatedCount`.
You can’t perform that action at this time.
0 commit comments