Skip to content

Commit

Permalink
Fix typo in paragraph component documentation (#2552)
Browse files Browse the repository at this point in the history
Fix the typo in the documentation for the paragraph component.

* Update the comment above the `backgroundPaint` initialization to "Create a background paint." in `docs/docs/text/paragraph.md`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/shopify/react-native-skia?shareId=XXXX-XXXX-XXXX-XXXX).

Co-authored-by: William Candillon <[email protected]>
  • Loading branch information
objectiveSee and wcandillon authored Jul 31, 2024
1 parent 3c37319 commit 56a3894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/text/paragraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const colors = [
const MyParagraph = () => {
const paragraph = useMemo(() => {

// Create a foreground paint.
// Create a background paint.
const backgroundPaint = Skia.Paint();
backgroundPaint.setShader(
source.makeShader([0, 0, 256, 256, ...colors])
Expand Down

0 comments on commit 56a3894

Please sign in to comment.