Skip to content

Commit bb3a0f5

Browse files
Fix some typos (#6478)
* Fix some typos * Fix another typo
1 parent d46c360 commit bb3a0f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/content/reference/react/experimental_taintUniqueValue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ experimental_taintUniqueValue(
192192
);
193193
```
194194

195-
Now whenever anyone tries to pass this password to a Client Component, or send the password to a Client Component with a Server Action, a error will be thrown with message you defined when you called `taintUniqueValue`.
195+
Now whenever anyone tries to pass this password to a Client Component, or send the password to a Client Component with a Server Action, an error will be thrown with message you defined when you called `taintUniqueValue`.
196196

197197
</DeepDive>
198198

src/content/reference/react/use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,14 @@ But using `await` in a [Server Component](/reference/react/components#server-com
351351
352352
In some cases a Promise passed to `use` could be rejected. You can handle rejected Promises by either:
353353
354-
1. [Displaying an error to users with error boundary.](#displaying-an-error-to-users-with-error-boundary)
354+
1. [Displaying an error to users with an error boundary.](#displaying-an-error-to-users-with-error-boundary)
355355
2. [Providing an alternative value with `Promise.catch`](#providing-an-alternative-value-with-promise-catch)
356356
357357
<Pitfall>
358358
`use` cannot be called in a try-catch block. Instead of a try-catch block [wrap your component in an Error Boundary](#displaying-an-error-to-users-with-error-boundary), or [provide an alternative value to use with the Promise's `.catch` method](#providing-an-alternative-value-with-promise-catch).
359359
</Pitfall>
360360
361-
#### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
361+
#### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
362362
363363
If you'd like to display an error to your users when a Promise is rejected, you can use an [error boundary](/reference/react/Component#catching-rendering-errors-with-an-error-boundary). To use an error boundary, wrap the component where you are calling the `use` Hook in an error boundary. If the Promise passed to `use` is rejected the fallback for the error boundary will be displayed.
364364

src/content/reference/react/useTransition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ main {
15011501
15021502
---
15031503
1504-
### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
1504+
### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
15051505
15061506
<Canary>
15071507

0 commit comments

Comments
 (0)