From 0cb1dc9138ac6a3a7986d6a358311753c6992e5d Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Tue, 9 Sep 2025 13:33:11 +0200 Subject: [PATCH] Fix incorrect documentation in Buffer.swift withUnsafeBytes method --- Sources/Subprocess/Buffer.swift | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/Subprocess/Buffer.swift b/Sources/Subprocess/Buffer.swift index 1bf739f..ca6e4a1 100644 --- a/Sources/Subprocess/Buffer.swift +++ b/Sources/Subprocess/Buffer.swift @@ -67,11 +67,10 @@ extension AsyncBufferSequence.Buffer { extension AsyncBufferSequence.Buffer { /// Access the raw bytes stored in this buffer /// - Parameter body: A closure with an `UnsafeRawBufferPointer` parameter that - /// points to the contiguous storage for the type. If no such storage exists, - /// the method creates it. If body has a return value, this method also returns - /// that value. The argument is valid only for the duration of the - /// closure’s SequenceOutput. - /// - Returns: The return value, if any, of the body closure parameter. + /// points to the contiguous storage for the buffer. If no such storage exists, + /// the method creates it. The argument is valid only for the duration of the + /// closure's execution. + /// - Returns: The return value of the body closure. public func withUnsafeBytes( _ body: (UnsafeRawBufferPointer) throws -> ResultType ) rethrows -> ResultType {