Skip to content

Commit

Permalink
Fix Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rushikeshacharya authored and calibra-opensource committed Jun 24, 2019
1 parent 5c7998a commit b07e11d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const TEST_VECTOR_1: &str = "ffffffffffffffff060000006463584d4237640000000000000

// Why do we need test vectors?
//
// 1. Sometimes it help to catch common bugs between serialization and
// 1. Sometimes it helps to catch common bugs between serialization and
// deserialization functions that would have been missed by a simple round trip test.
// For example, if there's a bug in a shared procedure that serialize and
// For example, if there's a bug in a shared procedure that serializes and
// deserialize both calls then roundtrip might miss it.
//
// 2. It helps to catch code changes that inadvertently introduce breaking changes
Expand Down
4 changes: 2 additions & 2 deletions common/canonical_serialization/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//!
//! An extremely simple implementation of CanonicalSerializer is also provided, the encoding
//! rules are:
//! (All unsigned integers are encoded in little endian representation unless specified otherwise)
//! (All unsigned integers are encoded in little-endian representation unless specified otherwise)
//!
//! 1. The encoding of an unsigned 64-bit integer is defined as its little endian representation
//! in 8 bytes
Expand All @@ -29,7 +29,7 @@
//! [No. of items in the list, represented as 4-byte integer] || encoding(item_0) || ....
//!
//! 4. The encoding of an ordered map where the keys are ordered by lexicographic order.
//! Currently we only support key and value of type Vec<u8>. The encoding is defined as:
//! Currently, we only support key and value of type Vec<u8>. The encoding is defined as:
//! [No. of key value pairs in the map, represented as 4-byte integer] || encode(key1) ||
//! encode(value1) || encode(key2) || encode(value2)...
//! where the pairs are appended following the lexicographic order of the key
Expand Down

0 comments on commit b07e11d

Please sign in to comment.