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 ce660f5 commit 5570dafCopy full SHA for 5570daf
docs/CppInteroperabilityManifesto.md
@@ -407,13 +407,13 @@ void printInt(const int &value);
407
```swift
408
// C++ header imported in Swift.
409
410
-void printInt(_ value: UnsafePointer<Int>)
+func printInt(_ value: UnsafePointer<Int>)
411
```
412
413
414
// Usage example.
415
416
-void caller() {
+func caller() {
417
var x = 42
418
printInt(&x) // OK
419
@@ -450,13 +450,13 @@ void printInt(const int &value);
450
451
452
453
-void printInt(_ value: Int)
+func printInt(_ value: Int)
454
455
456
457
458
459
460
let x = 42
461
printInt(y) // OK
462
}
0 commit comments