mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: add more doc comments to MutableIndexable
This commit is contained in:
@@ -11,7 +11,13 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
/// A type that supports subscript assignment to a mutable collection.
|
||||
///
|
||||
/// - Important: In most cases, it's best to ignore this protocol and use
|
||||
/// `CollectionType` instead, as it has a more complete interface.
|
||||
public protocol MutableIndexable : Indexable {
|
||||
// FIXME(ABI)(compiler limitation): there is no reason for this protocol
|
||||
// to exist apart from missing compiler features that we emulate with it.
|
||||
//
|
||||
// This protocol is almost an implementation detail of the standard
|
||||
// library; it is used to deduce things like the `SubSequence` and
|
||||
// `Iterator` type from a minimal collection, but it is also used in
|
||||
|
||||
Reference in New Issue
Block a user