Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cxx-interop] Fix incorrectly referring to "structure" instead of "class" #738

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phyominthu
Copy link

Fix incorrectly referring to "structure" instead of "class" in a section of C++ interoperability documentation.

Motivation:

Under Using Swift Classes in C++, the documentation is incorrectly referring to the Swift "structure" instead of "class".

Modifications:

Replace the Swift "structure" with "class".

Result:

Before:

Swift classes that are exposed to C++ become C++ classes in the generated header. Top-level classes are placed in the C++ namespace that represents the Swift module. The exposed initializers, methods and properties defined inside of the Swift structure become members of the C++ class.

After:

Swift classes that are exposed to C++ become C++ classes in the generated header. Top-level classes are placed in the C++ namespace that represents the Swift module. The exposed initializers, methods and properties defined inside of the Swift class become members of the C++ class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant