Skip to content

Commit

Permalink
Change IO::Buffered#peek's return type to Bytes (#13863)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Oct 5, 2023
1 parent 672389d commit 5ed476a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/buffered.cr
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ module IO::Buffered
# peek data if the current buffer is empty:
# otherwise no read is performed and whatever
# is in the buffer is returned.
def peek : Bytes?
def peek : Bytes
check_open

if @in_buffer_rem.empty?
Expand Down

0 comments on commit 5ed476a

Please sign in to comment.