Skip to content

Commit c13e749

Browse files
eshabenCopilot
andauthored
Update polkadot-protocol/parachain-basics/data-encoding.md
Co-authored-by: Copilot <[email protected]>
1 parent e0d47dc commit c13e749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polkadot-protocol/parachain-basics/data-encoding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The [`Decode`](https://docs.rs/parity-scale-codec/latest/parity_scale_codec/trai
5656

5757
The [`CompactAs`](https://docs.rs/parity-scale-codec/latest/parity_scale_codec/trait.CompactAs.html){target=\_blank} trait wraps custom types for compact encoding:
5858

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.
6060
- **`decode_from(_: Self::As) -> Result<Self, Error>`**: decodes from a compact encoded type.
6161

6262
### HasCompact

0 commit comments

Comments
 (0)