Skip to content

Commit

Permalink
Typofix in documentation (facebook#2061)
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface authored May 3, 2022
1 parent 9a40b3a commit a5899f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Editor States are also fully serializable to JSON and can easily be serialized b

When you want to change something in an Editor State, you must do it via an update, `editor.update(() => {...})`. The closure passed
to the update call is important. It's a place where you have full "lexical" context of the active editor state, and it exposes
access to the underling Editor State's node tree. We promote using `$` prefixed functions in this context, as it signifies a place
access to the underlying Editor State's node tree. We promote using `$` prefixed functions in this context, as it signifies a place
where they can be used exclusively. Attempting to use them outside of an update will trigger a runtime error with an appropriate error.
For those familiar with React Hooks, you can think of these has having a similar functionality (except `$` functions can be used in any order).

Expand Down
2 changes: 1 addition & 1 deletion packages/lexical-website-new/docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Editor States are also fully serializable to JSON and can easily be serialized b

When you want to change something in an Editor State, you must do it via an update, `editor.update(() => {...})`. The closure passed
to the update call is important. It's a place where you have full "lexical" context of the active editor state, and it exposes
access to the underling Editor State's node tree. We promote using `$` prefixed functions in this context, as it signifies a place
access to the underlying Editor State's node tree. We promote using `$` prefixed functions in this context, as it signifies a place
where they can be used exclusively. Attempting to use them outside of an update will trigger a runtime error with an appropriate error.
For those familiar with React Hooks, you can think of these has having a similar functionality (except `$` functions can be used in any order).

Expand Down

0 comments on commit a5899f2

Please sign in to comment.