Skip to content

Commit

Permalink
Surround "reader" and "writer" by * instead of `
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored Oct 20, 2018
1 parent 6169d77 commit d8681bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/io/stapled.cr
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ class IO::Stapled < IO
def initialize(@reader : IO, @writer : IO, @sync_close : Bool = false)
end

# Reads a single byte from `reader`.
# Reads a single byte from *reader*.
def read_byte : UInt8?
check_open

@reader.read_byte
end

# Reads a slice from `reader`.
# Reads a slice from *reader*.
def read(slice : Bytes)
check_open

@reader.read(slice)
end

# Gets a string from `reader`.
# Gets a string from *reader*.
def gets(delimiter : Char, limit : Int, chomp = false) : String?
check_open

Expand All @@ -50,21 +50,21 @@ class IO::Stapled < IO
@reader.peek
end

# Skips `reader`.
# Skips *reader*.
def skip(bytes_count : Int) : Nil
check_open

@reader.skip(bytes_count)
end

# Writes a byte to `writer`.
# Writes a byte to *writer*.
def write_byte(byte : UInt8) : Nil
check_open

@writer.write_byte(byte)
end

# Writes a slice to `writer`.
# Writes a slice to *writer*.
def write(slice : Bytes) : Nil
check_open

Expand All @@ -73,7 +73,7 @@ class IO::Stapled < IO
@writer.write(slice)
end

# Flushes `writer`.
# Flushes *writer*.
def flush : self
check_open

Expand Down

0 comments on commit d8681bd

Please sign in to comment.