Skip to content

Commit

Permalink
chore: fix typos (#3089)
Browse files Browse the repository at this point in the history
* fix typo

* fix typo

* fix typo

* fix typo
  • Loading branch information
omahs authored Aug 9, 2024
1 parent c96bdfd commit a8185e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/codecs-data-structures/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion packages/fast-stable-stringify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion packages/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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})`

Expand Down
2 changes: 1 addition & 1 deletion packages/rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a8185e4

Please sign in to comment.