From 3c1920e72d1459acb802952562c8dd6878153d9c Mon Sep 17 00:00:00 2001 From: Daniel Bate Date: Tue, 7 Nov 2023 12:00:14 +0000 Subject: [PATCH] docs: fix broken heap type doc snippets (#1410) * fix: fix docs snippets heap type examples * chore: changeset --- .changeset/late-elephants-trade.md | 2 ++ apps/docs/src/guide/types/bytes.md | 1 + apps/docs/src/guide/types/raw-slice.md | 1 + apps/docs/src/guide/types/std-string.md | 1 + 4 files changed, 5 insertions(+) create mode 100644 .changeset/late-elephants-trade.md diff --git a/.changeset/late-elephants-trade.md b/.changeset/late-elephants-trade.md new file mode 100644 index 00000000000..a49ba48448f --- /dev/null +++ b/.changeset/late-elephants-trade.md @@ -0,0 +1,2 @@ +--- +--- \ No newline at end of file diff --git a/apps/docs/src/guide/types/bytes.md b/apps/docs/src/guide/types/bytes.md index c1679bef10f..78d5429b749 100644 --- a/apps/docs/src/guide/types/bytes.md +++ b/apps/docs/src/guide/types/bytes.md @@ -11,4 +11,5 @@ The `Bytes` type can be integrated with your contract calls. Consider the follow <<< @/../../docs-snippets/projects/echo-bytes/src/main.sw#bytes-1{ts:line-numbers} A `Bytes` array can be created using a native JavaScript array of numbers or Big Numbers, and sent to a Sway contract: + <<< @/../../docs-snippets/src/guide/types/bytes.test.ts#bytes-2{ts:line-numbers} diff --git a/apps/docs/src/guide/types/raw-slice.md b/apps/docs/src/guide/types/raw-slice.md index 9306f4eb4cd..651ccda42ac 100644 --- a/apps/docs/src/guide/types/raw-slice.md +++ b/apps/docs/src/guide/types/raw-slice.md @@ -11,4 +11,5 @@ The `RawSlice` type can be integrated with your contract calls. Consider the fol <<< @/../../docs-snippets/projects/echo-raw-slice/src/main.sw#raw-slice-1{ts:line-numbers} A `RawSlice` can be created using a native JavaScript array of numbers or Big Numbers, and sent to a Sway contract: + <<< @/../../docs-snippets/src/guide/types/raw-slice.test.ts#raw-slice-2{ts:line-numbers} diff --git a/apps/docs/src/guide/types/std-string.md b/apps/docs/src/guide/types/std-string.md index 616cd96ecc7..f5d0b2a2a91 100644 --- a/apps/docs/src/guide/types/std-string.md +++ b/apps/docs/src/guide/types/std-string.md @@ -11,4 +11,5 @@ The `StdString` type can be integrated with your contract calls. Consider the fo <<< @/../../docs-snippets/projects/echo-std-string/src/main.sw#std-string-1{ts:line-numbers} A string can be created using a native JavaScript string, and sent to a Sway contract: + <<< @/../../docs-snippets/src/guide/types/std-string.test.ts#std-string-2{ts:line-numbers}