Skip to content

Commit 4bf38a1

Browse files
authored
Merge pull request swiftlang#31448 from valeriyvan/FixDocCommentCTypes
2 parents 1f5dcf0 + 2d6313f commit 4bf38a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

stdlib/public/core/CTypes.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ extension CVaListPointer: CustomDebugStringConvertible {
285285

286286
#endif
287287

288+
/// Copy `size` bytes of memory from `src` into `dest`.
289+
///
290+
/// The memory regions `src..<src + size` and
291+
/// `dest..<dest + size` should not overlap.
288292
@inlinable
289293
internal func _memcpy(
290294
dest destination: UnsafeMutableRawPointer,
@@ -299,10 +303,10 @@ internal func _memcpy(
299303
/*volatile:*/ false._value)
300304
}
301305

302-
/// Copy `count` bytes of memory from `src` into `dest`.
306+
/// Copy `size` bytes of memory from `src` into `dest`.
303307
///
304-
/// The memory regions `source..<source + count` and
305-
/// `dest..<dest + count` may overlap.
308+
/// The memory regions `src..<src + size` and
309+
/// `dest..<dest + size` may overlap.
306310
@inlinable
307311
internal func _memmove(
308312
dest destination: UnsafeMutableRawPointer,

0 commit comments

Comments
 (0)