Make ByteBuffer CustomDebugStringConvertible (#2418)

This commit is contained in:
Gwynne Raskind 2023-05-03 05:18:34 -05:00 committed by GitHub
parent d1690f8541
commit 014812aab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -863,7 +863,7 @@ public struct ByteBuffer {
}
}
extension ByteBuffer: CustomStringConvertible {
extension ByteBuffer: CustomStringConvertible, CustomDebugStringConvertible {
/// A `String` describing this `ByteBuffer`. Example:
///
/// ByteBuffer { readerIndex: 0, writerIndex: 4, readableBytes: 4, capacity: 512, storageCapacity: 1024, slice: 256..<768, storage: 0x0000000103001000 (1024 bytes)}