Skip to content

Commit

Permalink
docs(guides): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nabigraphics authored Jan 25, 2022
1 parent 019b985 commit b1bfc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/composing-atoms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ to override the read-only atom value.

```js
const rawNumberAtom = atom(10.1) // can be exported
count roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom)))
const roundNumberAtom = atom((get) => Math.round(get(rawNumberAtom)))
const overwrittenAtom = atom(null)
export const numberAtom = atom(
(get) => get(overwrittenAtom) ?? get(roundNumberAtom),
Expand Down

0 comments on commit b1bfc1e

Please sign in to comment.