Skip to content

Commit

Permalink
docs: fix broken heap type doc snippets (#1410)
Browse files Browse the repository at this point in the history
* fix: fix docs snippets heap type examples

* chore: changeset
  • Loading branch information
danielbate authored Nov 7, 2023
1 parent caf3bc7 commit 3c1920e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/late-elephants-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 1 addition & 0 deletions apps/docs/src/guide/types/bytes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 1 addition & 0 deletions apps/docs/src/guide/types/raw-slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
1 change: 1 addition & 0 deletions apps/docs/src/guide/types/std-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 3c1920e

Please sign in to comment.