Skip to content

Commit 21302e8

Browse files
authored
Merge pull request #74573 from apple/egorzhdan/nfc-import-as-ref-comment
[cxx-interop] NFC: update a couple outdated comments
2 parents 23a85d1 + b5a9da8 commit 21302e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/ABI/Metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@ using ForeignClassMetadata = TargetForeignClassMetadata<InProcess>;
12351235
/// The structure of metadata objects for foreign reference types.
12361236
/// A foreign reference type is a non-Swift, non-Objective-C foreign type with
12371237
/// reference semantics. Foreign reference types are pointers/reference to
1238-
/// value types marked with the "import_as_ref" attribute.
1238+
/// value types marked with the `swift_attr("import_reference")` attribute.
12391239
///
12401240
/// Foreign reference types may have *custom* reference counting operations, or
12411241
/// they may be immortal (and therefore trivial).

include/swift/ClangImporter/ClangImporterRequests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void simple_display(llvm::raw_ostream &out, CxxRecordSemanticsDescriptor desc);
349349
SourceLoc extractNearestSourceLoc(CxxRecordSemanticsDescriptor desc);
350350

351351
/// What pattern does this C++ API fit? Uses attributes such as
352-
/// import_owned and import_as_reference to determine the pattern.
352+
/// import_owned and import_reference to determine the pattern.
353353
///
354354
/// Do not evaluate this request before importing has started. For example, it
355355
/// is OK to invoke this request when importing a decl, but it is not OK to

0 commit comments

Comments
 (0)