Skip to content

Commit 570e67e

Browse files
author
Ary Borenszweig
committedDec 18, 2016
Document the Bytes alias
1 parent 18d96b0 commit 570e67e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/slice.cr

+2
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,6 @@ struct Slice(T)
461461
end
462462
end
463463

464+
# A convenient alias for the most common slice type,
465+
# a slice of bytes, used for example in `IO#read` and `IO#write`.
464466
alias Bytes = Slice(UInt8)

0 commit comments

Comments
 (0)
Please sign in to comment.