diff --git a/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx b/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx index 3e3b2fde..fe946163 100644 --- a/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx +++ b/doc-site/docs/FAQs/caclute-checksum-is-slow.mdx @@ -36,7 +36,7 @@ When you are developing Greenfield and need to create objects, if you are sure t ```javascript title="core lib (ESM)" import {ReedSolomon} from '@bnb-chain/reed-solomon' -const rs = new RS.ReedSolomon(); +const rs = new ReedSolomon(); const res = rs.encode(new Uint8Array(fileBuffer)) ``` diff --git a/packages/reed-solomon/README.md b/packages/reed-solomon/README.md index ef9ca2be..b7b281e1 100644 --- a/packages/reed-solomon/README.md +++ b/packages/reed-solomon/README.md @@ -19,7 +19,7 @@ If you use module bundler such as [Webpack](https://webpack.js.org/), [Rollup](h ```js import {ReedSolomon} from '@bnb-chain/reed-solomon' -const rs = new RS.ReedSolomon(); +const rs = new ReedSolomon(); const res = rs.encode(new Uint8Array(fileBuffer)) ```