Skip to content

Commit c50971b

Browse files
pzelivanreese
authored andcommitted
Use consistent import alias
The previous code example in this section says: ``` import * as Automerge from "@automerge/automerge" ``` but then second code example has: ``` am.updateText(...) ``` This is an unexpected alias change, so I'm changing it to say `Automerge.updateText`, like in other examples.
1 parent d5e4f99 commit c50971b

File tree

1 file changed

+1
-1
lines changed
  • content/docs/reference/documents

1 file changed

+1
-1
lines changed

content/docs/reference/documents/text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ input.oninput = (e) => {
5757
// @ts-ignore
5858
const newValue: string = e.target.value
5959
console.log("newValue", newValue)
60-
am.updateText(doc, ["text"], newValue)
60+
Automerge.updateText(doc, ["text"], newValue)
6161
})
6262
}
6363

0 commit comments

Comments
 (0)