Skip to content

Commit fa0ec5d

Browse files
authored
[docs] Update replaceRange to replaceSubrange
1 parent 0939e87 commit fa0ec5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/RangeReplaceableCollection.swift.gyb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ public protocol _RangeReplaceableIndexable : _Indexable {
237237
/// add an empty initializer and the `replaceSubrange(_:with:)` method to your
238238
/// custom type. `RangeReplaceableCollection` provides default implementations
239239
/// of all its other methods using this initializer and method. For example,
240-
/// the `removeSubrange` method is implemented by calling `replaceRange` with
241-
/// an empty collection for the `newElements` parameter. You can override any
242-
/// of the protocol's required methods to provide your own custom
243-
/// implementation.
240+
/// the `removeSubrange(_:)` method is implemented by calling
241+
/// `replaceSubrange(_:with:)` with an empty collection for the `newElements`
242+
/// parameter. You can override any of the protocol's required methods to
243+
/// provide your own custom implementation.
244244
public protocol RangeReplaceableCollection
245245
: _RangeReplaceableIndexable, Collection
246246
{

0 commit comments

Comments
 (0)