Skip to content

Commit 45bacc2

Browse files
authored
Merge pull request #41477 from saagarjha/master
[stdlib] Fix comment on _forEachFieldWithKeyPath
2 parents dadb811 + bb499b2 commit 45bacc2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/core/ReflectionMirror.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ public func _forEachField(
298298
/// - options: Options to use when reflecting over `type`.
299299
/// - body: A closure to call with information about each field in `type`.
300300
/// The parameters to `body` are a pointer to a C string holding the name
301-
/// of the field, the offset of the field in bytes, the type of the field,
302-
/// and the `_MetadataKind` of the field's type.
301+
/// of the field and an erased keypath for it.
303302
/// - Returns: `true` if every invocation of `body` returns `true`; otherwise,
304303
/// `false`.
305304
@available(SwiftStdlib 5.4, *)

0 commit comments

Comments
 (0)