Skip to content

Commit 211ad11

Browse files
authored
Docs: fix example in C++ interop manifesto
This adds the missing return type to subscript in one of the examples in C++ interop manifesto.
1 parent acec216 commit 211ad11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/CppInteroperabilityManifesto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ public:
28422842
// C++ header imported in Swift.
28432843
28442844
struct MyCxxContainer {
2845-
public subscript(_ i: Int) { get set }
2845+
public subscript(_ i: Int) -> Double { get set }
28462846
}
28472847
```
28482848

0 commit comments

Comments
 (0)