Skip to content

Commit 1e4fd7e

Browse files
committed
non-const change
1 parent f85d90a commit 1e4fd7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/cxx-interop/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ owned/guaranteed calling conventions. The C++ callers must guarantee that `x` is
12801280
Note that functions returning a shared reference type such as `returnSharedObject` transfer the ownership to the caller.
12811281
The C++ caller of this function is responsible for releasing the object.
12821282

1283-
If a C++ Shared Reference Type is passed as an argument to a C++ API from Swift, the Swift compiler *guarantees* that the passed value would be alive. Also Swift *assumes* that the C++ API is not consuming i.e., it returns with a valid object in the passed reference at the end of the C++ API call.
1283+
If a C++ Shared Reference Type is passed as an non-const argument to a C++ API from Swift, the Swift compiler *guarantees* that the passed value would be alive. Also Swift *assumes* that the C++ API is not consuming i.e., it returns with a valid object in the passed reference at the end of the C++ API call.
12841284

12851285
```swift
12861286
var obj = SharedObject.create()

0 commit comments

Comments
 (0)