Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hello World]: Added comment to stub and Instruction Append #78

Merged
merged 3 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions exercises/practice/hello-world/.meta/instructions.append.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Instructions append

~~~~exercism/caution

Unlike most “Hello World” exercises on Exercism, WebAssembly requires an extra change to the code you are provided with in the start file. As well as changing the string itself, you must also change the **length of the greeting** in the function definition. See the comment in the starter code for more details.
BethanyG marked this conversation as resolved.
Show resolved Hide resolved

~~~~
1 change: 1 addition & 0 deletions exercises/practice/hello-world/hello-world.wat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
(data (i32.const 64) "Goodbye, Mars!")

;; Returns the base offset and length of the greeting
;; The final number (currently “14”) must match the length of the new string.
(func (export "hello") (result i32 i32)
(i32.const 64) (i32.const 14)
)
Expand Down