Skip to content

Commit f487cc6

Browse files
authored
Update scale-codec.md (#2178)
An `Option(None)` doesn't have an encoded value.
1 parent cac50a6 commit f487cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/md/en/docs/reference/scale-codec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The following table shows how the Rust implementation of the Parity SCALE codec
4343
| Results [^2] | Results are commonly used enumerations which indicate whether certain operations were successful or unsuccessful. | `Ok(42)` | `0x002a` |
4444
| | | `Err(false)` | `0x0100` |
4545
| Options | One or zero values of a particular type. | `Some` | `0x01` followed by the encoded value |
46-
| | | `None` | `0x00` followed by the encoded value |
46+
| | | `None` | `0x00` |
4747
| 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` |
4848
| Strings | Strings are Vectors of bytes (`Vec<u8>`) containing a valid UTF8 sequence. | | |
4949
| 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` |

0 commit comments

Comments
 (0)