We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e618f79 commit 53b6b45Copy full SHA for 53b6b45
stdlib/public/core/Span/MutableRawSpan.swift
@@ -102,7 +102,7 @@ extension MutableRawSpan {
102
}
103
104
@_alwaysEmitIntoClient
105
- @lifetime(borrow elements)
+ @lifetime(&elements)
106
public init<Element: BitwiseCopyable>(
107
_elements elements: inout MutableSpan<Element>
108
) {
stdlib/public/core/Span/MutableSpan.swift
@@ -247,7 +247,7 @@ extension MutableSpan where Element: BitwiseCopyable {
247
/// - Returns: a MutableRawSpan over the memory represented by this span
248
249
public var mutableBytes: MutableRawSpan {
250
- @lifetime(borrow self)
+ @lifetime(&self)
251
mutating get {
252
MutableRawSpan(_elements: &self)
253
0 commit comments