Skip to content

Commit 0996be7

Browse files
authored
Fix C++ interop example (#448)
1 parent 57fc0fc commit 0996be7

File tree

1 file changed

+4
-4
lines changed
  • documentation/cxx-interop/project-build-setup

1 file changed

+4
-4
lines changed

documentation/cxx-interop/project-build-setup/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ It also describes how
1919
enable C++ interoperability by describing how to use C++ interoperability
2020
when invoking Swift compiler directly.
2121

22-
## Mixing Swift and C++ Using Swift Package Manager
22+
## Mixing Swift and C++ Using Swift Package Manager
2323

2424
The [Swift Package Manager](/package-manager/) allows Swift code to use
2525
C++ APIs in Swift.
@@ -124,7 +124,7 @@ includes the other headers in the C++ target:
124124
// Header file `cxxLibrary.h`
125125
#pragma once
126126

127-
#include <cxxLibrary/classImpl.h>
127+
#include <classImpl.h>
128128
```
129129

130130
The Swift code in the `swiftCLITool` can import `cxxLibrary` directly:
@@ -211,7 +211,7 @@ header:
211211
```
212212

213213

214-
### Using C++ APIs of Imported Framework Target
214+
### Using C++ APIs of Imported Framework Target
215215

216216
The supported C++ functions and types declared in a **public** C++ header of
217217
an Xcode framework target can be used from Swift code in other targets.
@@ -260,7 +260,7 @@ This section describes how to enable and use C++ interoperability
260260
when invoking the Swift compiler directly. This allows other
261261
build systems to configure a mixed-language Swift and C++ project.
262262

263-
### Enabling C++ Interoperability in the Swift Compiler
263+
### Enabling C++ Interoperability in the Swift Compiler
264264

265265
The **`-cxx-interoperability-mode=`** build flag is used to enable C++
266266
interoperability in the Swift compiler. It receives the interoperability

0 commit comments

Comments
 (0)