Skip to content

Commit

Permalink
Update scale-codec.md
Browse files Browse the repository at this point in the history
An `Option(None)` doesn't have an encoded value.
  • Loading branch information
josepot authored Sep 17, 2024
1 parent cac50a6 commit 1709fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/md/en/docs/reference/scale-codec.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The following table shows how the Rust implementation of the Parity SCALE codec
| Results [^2] | Results are commonly used enumerations which indicate whether certain operations were successful or unsuccessful. | `Ok(42)` | `0x002a` |
| | | `Err(false)` | `0x0100` |
| Options | One or zero values of a particular type. | `Some` | `0x01` followed by the encoded value |
| | | `None` | `0x00` followed by the encoded value |
| | | `None` | `0x00` |
| Vectors (lists, series, sets) | A collection of same-typed values is encoded, prefixed with a _compact_ encoding of the number of items, followed by each item's encoding concatenated in turn. | Vector of unsigned 16-bit integers: `[4, 8, 15, 16, 23, 42]` | `0x18040008000f00100017002a00` |
| Strings | Strings are Vectors of bytes (`Vec<u8>`) containing a valid UTF8 sequence. | | |
| Tuples | A fixed-size series of values, each with a possibly different but predetermined and fixed type. This is simply the concatenation of each encoded value. | Tuple of compact unsigned integer and boolean: `(3, false)` | `0x0c00` |
Expand Down

0 comments on commit 1709fda

Please sign in to comment.