Skip to content

Commit d7ac212

Browse files
committed
Keep doc comment before declaration.
Because the attribute is part of the declaration, putting a doc comment between the attribute and "public" ends up with the comment in the middle of the declaration. This results in SourceKit skipping over the comment, and the docs not being shown. Fixes <rdar://problem/58716408>.
1 parent 5fb5a72 commit d7ac212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ internal func _abstract(
3030
// The two must coexist, so it was renamed. The old name must not be
3131
// used in the new runtime. _TtCs11_AnyKeyPath is the mangled name for
3232
// Swift._AnyKeyPath.
33-
@_objcRuntimeName(_TtCs11_AnyKeyPath)
3433

3534
/// A type-erased key path, from any root type to any resulting value
3635
/// type.
36+
@_objcRuntimeName(_TtCs11_AnyKeyPath)
3737
public class AnyKeyPath: Hashable, _AppendKeyPath {
3838
/// The root type for this key path.
3939
@inlinable

0 commit comments

Comments
 (0)