Skip to content

Commit

Permalink
fix: unclosed string literal in code example, async keyword for the f…
Browse files Browse the repository at this point in the history
…unction (#1702)
  • Loading branch information
IgorShadurin authored Oct 9, 2023
1 parent 316f07d commit 2cae718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ Client applications primarily deal with addresses and public keys in the form of
From time to time you might acquire a string, that you expect to validate as an address, from an untrusted network API or user input. To assert that such an arbitrary string is a base58-encoded address, use the `assertIsBase58EncodedAddress` function.

```ts
import { assertIsBase58EncodedAddress } from '@solana/web3.js`;
import { assertIsBase58EncodedAddress } from '@solana/web3.js';

// Imagine a function that fetches an account's balance when a user submits a form.
function handleSubmit() {
async function handleSubmit() {
// We know only that what the user typed conforms to the `string` type.
const address: string = accountAddressInput.value;
try {
Expand Down

0 comments on commit 2cae718

Please sign in to comment.