Skip to content

Commit 8bf23fa

Browse files
authored
Merge pull request #1186 from Mas0nSun/demo-code-compile-error
[Proposal] Demo Code Compile Error in SE0258
2 parents 19d51f3 + 85fda4d commit 8bf23fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0258-property-wrappers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ struct CopyOnWrite<Value: Copyable> {
607607
var projectedValue: Value {
608608
mutating get {
609609
if !isKnownUniquelyReferenced(&wrappedValue) {
610-
wrappedValue = value.copy()
610+
wrappedValue = wrappedValue.copy()
611611
}
612612
return wrappedValue
613613
}

0 commit comments

Comments
 (0)