Skip to content

Commit a2b7074

Browse files
committed
fix(docs): rename duplicate const facets variables in changeset example
CodeRabbit flagged that both const declarations in the same block scope caused a TS/ES6 redeclaration error. Rename to facetsSync/facetsAsync.
1 parent 2b601d6 commit a2b7074

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.changeset/add-richtext-utility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ New utility functions to simplify creating rich text facets:
2020
import { createFacetsFromText, createFacetsFromTextSync } from "@hypercerts-org/sdk-core";
2121

2222
// Sync (no DID resolution)
23-
const facets = createFacetsFromTextSync("Check out #hypercerts by @alice");
23+
const facetsSync = createFacetsFromTextSync("Check out #hypercerts by @alice");
2424

2525
// Async with DID resolution (requires authenticated agent)
26-
const facets = await createFacetsFromText("Check out #hypercerts by @alice", agent);
26+
const facetsAsync = await createFacetsFromText("Check out #hypercerts by @alice", agent);
2727
```

0 commit comments

Comments
 (0)