Closed kartva closed 3 years ago
Thanks for the report, @DesmondWillowbrook !
Your fix suggestion looks good to me. You are welcome to edit the page yourself, if you like.
Yes, I tried to do exactly that, but couldn't find where the page was hosted. Could you please point it out to me?
On Tue, Dec 1, 2020 at 2:08 PM Chris Mills notifications@github.com wrote:
Thanks for the report, @DesmondWillowbrook https://github.com/DesmondWillowbrook !
Your fix suggestion looks good to me. You are welcome to edit the page yourself, if you like.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mdn/sprints/issues/3934#issuecomment-736313235, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMLJ6DV5T3VFKXKT4WJGSADSSSTOXANCNFSM4UIRLULA .
Here's a link to the page @DesmondWillowbrook, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory, once you're signed in you'll be able to edit the page, let me know if instead you'd like me to do this for you!
I did it! I also added another shorter example to elucidate the usage. Should I make a complete example for the second method or is this much enough?
@DesmondWillowbrook that looks great, thanks for your contribution!
Request type
[X] Correction or update
[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
Details
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory (Specifically: This)
Adding another example to the Examples section of the page.
The (2nd) paragraph (of the 1st section) mentions there being two ways to access the Web Assembly Memory, specifically:
However, the paragraph talks about the second method and immediately swerves to a complete example showcasing the first. The second example is not explained.
Changes to be made:
Fine the way it is.
Delete the first line.
Then add a new paragraph.
Even a paragraph pointing someone in the right direction for the second method would be helpful, I think. There's not much need to make a full-blown example, since exporting Web Assembly memory is trivial (I think). Otherwise, we can include an S-expression that shows how to do it.
This is my first time contributing here, please let me know if I did something wrong!