Skip to content

Commit

Permalink
PR #3681 followup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija authored and asterite committed Dec 20, 2016
1 parent 1bac47c commit 306ef6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/std/file_utils_spec.cr
Expand Up @@ -11,7 +11,7 @@ private class OneByOneIO
@pos = 0
end

def read(slice : Slice(UInt8))
def read(slice : Bytes)
return 0 if slice.empty?
return 0 if @pos >= @bytes.size

Expand All @@ -20,7 +20,7 @@ private class OneByOneIO
1
end

def write(slice : Slice(UInt8)) : Nil
def write(slice : Bytes) : Nil
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/base64.cr
Expand Up @@ -153,7 +153,7 @@ module Base64
strict_encode_to_io_internal(data, io, CHARS_SAFE, pad: true)
end

# Returns the Base64-decoded version of `data` as a *Bytes*.
# Returns the Base64-decoded version of `data` as a `Bytes`.
# This will decode either the normal or urlsafe alphabets.
def decode(data) : Bytes
slice = data.to_slice
Expand Down

0 comments on commit 306ef6d

Please sign in to comment.