Skip to content

Commit 2cae718

Browse files
authored
fix: unclosed string literal in code example, async keyword for the function (#1702)
1 parent 316f07d commit 2cae718

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/library/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ Client applications primarily deal with addresses and public keys in the form of
8080
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.
8181

8282
```ts
83-
import { assertIsBase58EncodedAddress } from '@solana/web3.js`;
83+
import { assertIsBase58EncodedAddress } from '@solana/web3.js';
8484

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

0 commit comments

Comments
 (0)