Unverified Commit 1a0a11dc authored by Slesarew's avatar Slesarew Committed by GitHub
Browse files

Docs: Update README.md (#260)

parent 1beac25d
Pipeline #131332 passed with stages
in 22 minutes and 34 seconds
......@@ -70,6 +70,7 @@ Following are some examples to demonstrate usage of the codec.
```rust
use parity_scale_codec::{Encode, Decode};
use parity_scale_codec_derive::{Encode, Decode};
#[derive(Debug, PartialEq, Encode, Decode)]
enum EnumType {
......@@ -117,6 +118,7 @@ assert_eq!(EnumType::decode(&mut dz).ok(), None);
```rust
use parity_scale_codec::{Encode, Decode, Compact, HasCompact};
use parity_scale_codec_derive::{Encode, Decode};
#[derive(Debug, PartialEq, Encode, Decode)]
struct Test1CompactHasCompact<T: HasCompact> {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment