Skip to content

Commit a3eb1a7

Browse files
authored
[APINotes] Match the SwiftName for NSXMLDTDKind to the headers. (#6901)
In the SDK shipped with Swift 3, NSXMLNodeKind's enumerator NSXMLDTDKind was mistakenly annotated with `NS_SWIFT_NAME(DTDKind)` instead of `NS_SWIFT_NAME(dtd)`. We'd like to fix that in a later version of the SDK, but we need to maintain Swift 3 compatibility on the off-chance someone is using the bad name. If we /do/ decide to change this, we can undo this change (going back to an API note SwiftName of 'dtd') and add a Swift-3-versioned SwiftName of 'DTDKind' instead.
1 parent fa59a29 commit a3eb1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apinotes/Foundation.apinotes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ Enumerators:
15551555
- Name: NSXMLTextKind
15561556
SwiftName: text
15571557
- Name: NSXMLDTDKind
1558-
SwiftName: dtd
1558+
SwiftName: DTDKind
15591559
- Name: NSXMLEntityDeclarationKind
15601560
SwiftName: entityDeclaration
15611561
- Name: NSXMLAttributeDeclarationKind

0 commit comments

Comments
 (0)