Skip to content

Commit 60e16a2

Browse files
bushidocodesglennj
andauthored
Update exercises/practice/circular-buffer/circular-buffer.wat
Co-authored-by: Glenn Jackman <glenn.jackman@gmail.com>
1 parent fc719e2 commit 60e16a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/practice/circular-buffer/circular-buffer.wat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(module
2-
;; a WebAssembly page is 64KiB, so each page holds up to 16384 i32s
3-
;; Our linear memory is one page by default, but it is permitted to grow
4-
;; up to four pages via use of the memory.grow instruction, which can hold
5-
;; up to 65536 i32s.
2+
;; Linear memory is allocated one page by default.
3+
;; A page is 64KiB, and that can hold up to 16384 i32s.
4+
;; We will permit memory to grow to a maximum of four pages.
5+
;; The maximum capacity of our buffer is 65536 i32s.
66
(memory (export "mem") 1 4)
77
;; Add globals here!
88

0 commit comments

Comments
 (0)