From a8185e4e1b7b57e7d847a50260ee5715a258d290 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Fri, 9 Aug 2024 15:23:31 +0200 Subject: [PATCH] chore: fix typos (#3089) * fix typo * fix typo * fix typo * fix typo --- packages/codecs-data-structures/README.md | 2 +- packages/fast-stable-stringify/README.md | 2 +- packages/library/README.md | 2 +- packages/rpc/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/codecs-data-structures/README.md b/packages/codecs-data-structures/README.md index f34ea11a3bd0..735a85dd0531 100644 --- a/packages/codecs-data-structures/README.md +++ b/packages/codecs-data-structures/README.md @@ -574,7 +574,7 @@ codecWithCustomNoneValue.encode(42); // 0x2a00 codecWithCustomNoneValue.encode(null); // 0xff ``` -Finally, note that if `prefix` is set to `null` and no `noneValue` is provided, the codec assume that the item exists if and only if some remaining bytes are available to decode. This could be useful to describe data structures that may or may not have additional data to the end of the buffer. +Finally, note that if `prefix` is set to `null` and no `noneValue` is provided, the codec assumes that the item exists if and only if some remaining bytes are available to decode. This could be useful to describe data structures that may or may not have additional data to the end of the buffer. ```ts const codec = getNullableCodec(getU16Codec(), { prefix: null }); diff --git a/packages/fast-stable-stringify/README.md b/packages/fast-stable-stringify/README.md index 687109f62f69..a645e475ca29 100644 --- a/packages/fast-stable-stringify/README.md +++ b/packages/fast-stable-stringify/README.md @@ -2,7 +2,7 @@ This project is a fork of [nickyout/fast-stable-stringify](https://github.com/nickyout/fast-stable-stringify) -The most popular repository providing this feature is [substack's json-stable-stringify](https://www.npmjs.com/package/json-stable-stringify). The intent if this library is to provide a faster alternative for when performance is more important than features. It assumes you provide basic javascript values without circular references, and returns a non-indented string. +The most popular repository providing this feature is [substack's json-stable-stringify](https://www.npmjs.com/package/json-stable-stringify). The intent of this library is to provide a faster alternative for when performance is more important than features. It assumes you provide basic javascript values without circular references, and returns a non-indented string. Usage: diff --git a/packages/library/README.md b/packages/library/README.md index 0e629fbdce3f..ac51164ad397 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -18,7 +18,7 @@ This is the JavaScript SDK for building Solana apps for Node, web, and React Nat ## Functions -In addition to rexporting functions from packages in the `@solana/*` namespace, this package offers additional helpers for building Solana applications, with sensible defaults. +In addition to reexporting functions from packages in the `@solana/*` namespace, this package offers additional helpers for building Solana applications, with sensible defaults. ### `airdropFactory({rpc, rpcSubscriptions})` diff --git a/packages/rpc/README.md b/packages/rpc/README.md index 688d0c3a2821..0032fd7fad1c 100644 --- a/packages/rpc/README.md +++ b/packages/rpc/README.md @@ -46,7 +46,7 @@ transport satisfies RpcTransportTestnet; // OK These types refine the base `Rpc` type. Each describes a RPC that is specific in some way to a particular Solana cluster and a corpus of RPC methods. -This is useful in cases where you need to make assertions about the suitablilty of a RPC for a given purpose. For example, you might like to make it a type error to combine certain types with RPC belonging to certain clusters, at compile time. +This is useful in cases where you need to make assertions about the suitability of a RPC for a given purpose. For example, you might like to make it a type error to combine certain types with RPC belonging to certain clusters, at compile time. ```ts async function getSpecialAccountInfo(