lib/chunky_png/chunk.rb in chunky_png-1.0.1 vs lib/chunky_png/chunk.rb in chunky_png-1.1.0
- old
+ new
@@ -2,11 +2,11 @@
# A PNG datastream consists of multiple chunks. This module, and the classes
# contained within, help with handling these chunks. It supports both
# reading and writing chunks.
#
- # All chunck types are instances of the {ChunkyPNG::Chunk::Base} class. For
+ # All chunk types are instances of the {ChunkyPNG::Chunk::Base} class. For
# some chunk types a specialized class is available, e.g. the IHDR chunk is
# represented by the {ChunkyPNG::Chunk::Header} class. These specialized
# classes help accessing the content of the chunk. All other chunks are
# represented by the {ChunkyPNG::Chunk::Generic} class.
#
@@ -70,10 +70,10 @@
io << [Zlib.crc32(content, Zlib.crc32(type))].pack('N')
end
# Writes the chunk to the IO stream.
#
- # It will call te +content+ method to get the content for this chunk,
+ # It will call the +content+ method to get the content for this chunk,
# and will calculate and append the checksum automatically.
# @param [IO] io The IO stream to write to.
def write(io)
write_with_crc(io, content || '')
end