Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
docs(experimental): fix import typos in codec example (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
quellen-sol authored Nov 2, 2023
1 parent a23ca33 commit fbd3974
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,9 @@ Solana’s codecs libraries are broken up into modular components so you only ne
Here’s an example of encoding and decoding a custom struct with some strings and numbers:

```tsx
import { getStructEncoder } from "@solana/codecs-data-structures";
import { getU8Encoder, getU64Encoder } from "@solana/codecs-numbers";
import { getStringEncoder } from "@solana/codecs-strings";
import { getStructCodec } from "@solana/codecs-data-structures";
import { getU64Codec, getU8Codec } from "@solana/codecs-numbers";
import { getStringCodec } from "@solana/codecs-strings";

// Equivalent in Rust:
// struct {
Expand Down

0 comments on commit fbd3974

Please sign in to comment.