Skip to content

Commit

Permalink
Document the Bytes alias
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Dec 18, 2016
1 parent 18d96b0 commit 570e67e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slice.cr
Expand Up @@ -461,4 +461,6 @@ struct Slice(T)
end
end

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

0 comments on commit 570e67e

Please sign in to comment.