diff --git a/exercises/practice/acronym/.docs/instructions.append.md b/exercises/practice/acronym/.docs/instructions.append.md index 84211ac..cb8c428 100644 --- a/exercises/practice/acronym/.docs/instructions.append.md +++ b/exercises/practice/acronym/.docs/instructions.append.md @@ -1,5 +1,7 @@ +# Instruction append + ## Reserved Addresses -The buffer for the input string uses bytes 64 - 196 of linear memory. +The buffer for the input string uses bytes 64-196 of linear memory. -You may modify this buffer in place if you wish to avoid additional memory allocations +You may modify this buffer in place if you wish to avoid additional memory allocations. diff --git a/exercises/practice/all-your-base/.docs/instructions.append.md b/exercises/practice/all-your-base/.docs/instructions.append.md index 47f6ac8..f1330e2 100644 --- a/exercises/practice/all-your-base/.docs/instructions.append.md +++ b/exercises/practice/all-your-base/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Addresses All input is provided as parameters, so no addresses in the linear memory are reserved. diff --git a/exercises/practice/armstrong-numbers/.docs/instructions.append.md b/exercises/practice/armstrong-numbers/.docs/instructions.append.md index 862d7ef..39932fc 100644 --- a/exercises/practice/armstrong-numbers/.docs/instructions.append.md +++ b/exercises/practice/armstrong-numbers/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Addresses -No linear memory is requires for this exercise. +No linear memory is required for this exercise. diff --git a/exercises/practice/circular-buffer/.docs/hints.md b/exercises/practice/circular-buffer/.docs/hints.md new file mode 100644 index 0000000..cfe36b6 --- /dev/null +++ b/exercises/practice/circular-buffer/.docs/hints.md @@ -0,0 +1,3 @@ +# Hints + +Linear memory is byte-addressable, but `i32` has a width of four bytes. diff --git a/exercises/practice/circular-buffer/.docs/instructions.append.md b/exercises/practice/circular-buffer/.docs/instructions.append.md index 19e5b9c..7042752 100644 --- a/exercises/practice/circular-buffer/.docs/instructions.append.md +++ b/exercises/practice/circular-buffer/.docs/instructions.append.md @@ -1,5 +1,3 @@ -# Instructions +# Instructions append The `read` returns a Go-style error handling type `(i32,i32)` - -Hint: Linear Memory is byte-addressable, but `i32` has a width of four bytes diff --git a/exercises/practice/collatz-conjecture/.docs/instructions.append.md b/exercises/practice/collatz-conjecture/.docs/instructions.append.md index 2c9bf6b..77db8ea 100644 --- a/exercises/practice/collatz-conjecture/.docs/instructions.append.md +++ b/exercises/practice/collatz-conjecture/.docs/instructions.append.md @@ -1,3 +1,3 @@ # Instructions append -If `n` is not a positive integer, stop the program from being executed further and return -1 indicating an error condition. +If `n` is _not_ a positive integer, don't continue executing and return `-1` to indicate an error condition. diff --git a/exercises/practice/hamming/.docs/instructions.append.md b/exercises/practice/hamming/.docs/instructions.append.md index 9608876..4b7eb00 100644 --- a/exercises/practice/hamming/.docs/instructions.append.md +++ b/exercises/practice/hamming/.docs/instructions.append.md @@ -1,6 +1,8 @@ +# Instruction append + ## Reserved Addresses The buffer for the first string uses bytes 1024-2047 of linear memory. The buffer for the second string uses bytes 2048-3075 of linear memory. -You should not have to modify these buffer or allocate additional memory +You should not have to modify these buffers or allocate additional memory. diff --git a/exercises/practice/nucleotide-count/.docs/instructions.append.md b/exercises/practice/nucleotide-count/.docs/instructions.append.md index 5b80b0c..a100681 100644 --- a/exercises/practice/nucleotide-count/.docs/instructions.append.md +++ b/exercises/practice/nucleotide-count/.docs/instructions.append.md @@ -2,9 +2,8 @@ ## Reserved Memory -Bytes 64-319 of the linear memory are reserved for the input string. +The buffer for the input string uses bytes 64-319 of linear memory. ## Results -The result should be returned as a 4-way tuple (i32 i32 i32 i32) -Each number represents the count for A, C, G and T in this order. +The result should be returned as a 4-way tuple: `(i32 i32 i32 i32)`. Each number represents the count for the letters `A`, `C`, `G`and `T`, in this order. diff --git a/exercises/practice/pangram/.docs/instructions.append.md b/exercises/practice/pangram/.docs/instructions.append.md index 285116d..4881b74 100644 --- a/exercises/practice/pangram/.docs/instructions.append.md +++ b/exercises/practice/pangram/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Memory -Bytes 64-319 of the linear memory are reserved for the input string. +The buffer for the input string uses bytes 64-319 of linear memory. diff --git a/exercises/practice/pop-count/.docs/instructions.append.md b/exercises/practice/pop-count/.docs/instructions.append.md index c0f3736..39932fc 100644 --- a/exercises/practice/pop-count/.docs/instructions.append.md +++ b/exercises/practice/pop-count/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Addresses No linear memory is required for this exercise. diff --git a/exercises/practice/resistor-color/.docs/instructions.append.md b/exercises/practice/resistor-color/.docs/instructions.append.md index 9f6c882..6f69aaa 100644 --- a/exercises/practice/resistor-color/.docs/instructions.append.md +++ b/exercises/practice/resistor-color/.docs/instructions.append.md @@ -1,10 +1,12 @@ +# Instructions append + ## Reserved Memory -Bytes 64-189 of the linear memory are reserved for the input string. +The buffer for the input string uses bytes 64-189 of linear memory. -# Instructions append +## Arrays -WebAssembly does not have the concept of arrays. For the colors test, return a comma-delimited buffer of characters in the form: -`black,brown,red,orange,yellow,green,blue,violet,grey,white` +WebAssembly does not have the concept of arrays. +For the colors test, return a comma-delimited buffer of characters in the form: `black,brown,red,orange,yellow,green,blue,violet,grey,white` You will then have to internally build an array of structures using offsets and lengths to provide structure around this buffer. diff --git a/exercises/practice/reverse-string/.docs/instructions.append.md b/exercises/practice/reverse-string/.docs/instructions.append.md index 77f832c..29e1fbb 100644 --- a/exercises/practice/reverse-string/.docs/instructions.append.md +++ b/exercises/practice/reverse-string/.docs/instructions.append.md @@ -1,5 +1,5 @@ ## Reserved Memory -Bytes 64-319 of the linear memory are reserved for the input string. +The buffer for the input string uses bytes 64-319 of linear memory. The input string can be modified in place if desired. diff --git a/exercises/practice/rna-transcription/.docs/instructions.append.md b/exercises/practice/rna-transcription/.docs/instructions.append.md index 30914d9..c51e635 100644 --- a/exercises/practice/rna-transcription/.docs/instructions.append.md +++ b/exercises/practice/rna-transcription/.docs/instructions.append.md @@ -1,5 +1,7 @@ +# Instruction append + ## Reserved Memory -Bytes 64-189 of the linear memory are reserved for the input string. +The buffer for the input string uses bytes 64-189 of linear memory. The input string can be modified in place if desired. diff --git a/exercises/practice/square-root/.docs/instructions.append.md b/exercises/practice/square-root/.docs/instructions.append.md index c0f3736..39932fc 100644 --- a/exercises/practice/square-root/.docs/instructions.append.md +++ b/exercises/practice/square-root/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Addresses No linear memory is required for this exercise. diff --git a/exercises/practice/two-fer/.docs/instructions.append.md b/exercises/practice/two-fer/.docs/instructions.append.md index 18ee30f..647addf 100644 --- a/exercises/practice/two-fer/.docs/instructions.append.md +++ b/exercises/practice/two-fer/.docs/instructions.append.md @@ -1,3 +1,5 @@ +# Instruction append + ## Reserved Addresses -The input buffer for the first string uses bytes 128-192 linear memory. +The buffer for the input string uses bytes 128-192 of linear memory.