We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc719e2 commit 60e16a2Copy full SHA for 60e16a2
exercises/practice/circular-buffer/circular-buffer.wat
@@ -1,8 +1,8 @@
1
(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.
+ ;; Linear memory is allocated one page by default.
+ ;; A page is 64KiB, and that can hold up to 16384 i32s.
+ ;; We will permit memory to grow to a maximum of four pages.
+ ;; The maximum capacity of our buffer is 65536 i32s.
6
(memory (export "mem") 1 4)
7
;; Add globals here!
8
0 commit comments