Fix non-public init (#1573)

This commit is contained in:
David Evans 2020-06-25 13:07:18 +01:00 committed by GitHub
parent 30961d2f05
commit 6bba46fb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ extension Array where Element == UInt8 {
/// Creates a `[UInt8]` from the given buffer. The entire readable portion of the buffer will be read.
/// - parameter buffer: The buffer to read.
init(buffer: ByteBuffer) {
public init(buffer: ByteBuffer) {
var buffer = buffer
self = buffer.readBytes(length: buffer.readableBytes)!
}