Skip to content

Commit

Permalink
issue #5 - cosmetic edits to API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bjouhier committed Sep 18, 2014
1 parent 85d8d58 commit e1ea283
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/helpers/binary._js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var NUMBERS = [//
['Float', 4], ['Double', 8]];

///
/// ###
/// ----
///
/// * `reader = ez.helpers.binary.reader(reader, options)`
/// Wraps a raw buffer reader and returns a reader with additional API to handle binary streams.
Expand Down Expand Up @@ -77,7 +77,7 @@ Reader.prototype.peek = function(_, len) {
}

///
/// * reader.unread(len)`
/// * `reader.unread(len)`
/// Unread the last `len` bytes read.
/// `len` cannot exceed the size of the last read.
Reader.prototype.unread = function(len) {
Expand Down Expand Up @@ -117,7 +117,7 @@ function numberReader(name, len, peekOnly) {
}

///
/// ###
/// ----
///
/// * `writer = ez.helpers.binary.writer(writer, options)`
/// Wraps a raw buffer writer and returns a writer with additional API to handle binary streams.
Expand Down
6 changes: 3 additions & 3 deletions lib/helpers/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`var ez = require("ez-streams")`

###
----

* `reader = ez.helpers.binary.reader(reader, options)`
Wraps a raw buffer reader and returns a reader with additional API to handle binary streams.
Expand All @@ -20,7 +20,7 @@
Same as `read` but does not advance the read pointer.
Another `read` would read the same data again.

* reader.unread(len)`
* `reader.unread(len)`
Unread the last `len` bytes read.
`len` cannot exceed the size of the last read.

Expand All @@ -44,7 +44,7 @@
* `val = reader.peekDouble(_)`
Specialized peekers for numbers.

###
----

* `writer = ez.helpers.binary.writer(writer, options)`
Wraps a raw buffer writer and returns a writer with additional API to handle binary streams.
Expand Down

0 comments on commit e1ea283

Please sign in to comment.