You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: polkadot-protocol/parachain-basics/data-encoding.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ The [`Decode`](https://docs.rs/parity-scale-codec/latest/parity_scale_codec/trai
56
56
57
57
The [`CompactAs`](https://docs.rs/parity-scale-codec/latest/parity_scale_codec/trait.CompactAs.html){target=\_blank} trait wraps custom types for compact encoding:
58
58
59
-
-**`encode_as(&self) -> &Self::As`**: Encodes the type as a compact type.
59
+
-**`encode_as(&self) -> &Self::As`**: Encodes the type as a compact type.
60
60
-**`decode_from(_: Self::As) -> Result<Self, Error>`**: decodes from a compact encoded type.
0 commit comments