Skip to content

Commit

Permalink
Docs: Update README.md (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slesarew authored Mar 29, 2021
1 parent 1beac25 commit 1a0a11d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit 1a0a11d

Please sign in to comment.