Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdonh committed Dec 4, 2018
1 parent cf49da3 commit d2e9038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/binaryEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const encodeBinary = (instance, type, opts, isBare = true) => {

case Types.Int32:
{
if (opts.binFix32) {
if (opts.binFixed32) {
data = Encoder.encodeInt32(tmpInstance)
} else {
data = Encoder.encodeUVarint(tmpInstance)
Expand Down
2 changes: 1 addition & 1 deletion src/codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FieldOtions {
this.jsonName = opts.jsonName || "";
this.jsonOmitEmpty = opts.jsonOmitEmpty || "";
this.binFixed64 = opts.binFixed64 || false; // (Binary) Encode as fixed64
this.binFix32 = opts.binFix32 || false; // (Binary) Encode as fixed32
this.binFixed32 = opts.binFixed32 || false; // (Binary) Encode as fixed32
this.unsafe = opts.unsafe || false; // e.g. if this field is a float.
this.writeEmpty = opts.writeEmpty || false; // write empty structs and lists (default false except for pointers)
this.emptyElements = opts.emptyElements || false; // Slice and Array elements are never nil, decode 0x00 as empty struct.
Expand Down

0 comments on commit d2e9038

Please sign in to comment.