Skip to content

Fix typos in docs #23

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

Merged
merged 1 commit into from
Jun 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-head-wasm-emscripten/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package distributes the latest `master` branch of CRuby.

## Installation

For instaling ruby-head-wasm-emscripten, just run this command in your shell:
For installing ruby-head-wasm-emscripten, just run this command in your shell:

```console
$ npm install --save ruby-head-wasm-emscripten@latest
Expand Down
7 changes: 3 additions & 4 deletions packages/npm-packages/ruby-head-wasm-wasi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package distributes the latest `master` branch of CRuby.

## Installation

For instaling ruby-head-wasm-wasi family, just run this command in your shell:
For installing ruby-head-wasm-wasi family, just run this command in your shell:

```console
$ npm install --save ruby-head-wasm-wasi@latest
Expand Down Expand Up @@ -51,16 +51,15 @@ $ node --experimental-wasi-unstable-preview1 index.node.js

## Quick Start (for Browser)

In browser, you need a WASI polyfill
See [the example project](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-wasm-wasi/example) for more details.
In browser, you need a WASI polyfill. See [the example project](https://github.com/ruby/ruby.wasm/tree/main/packages/npm-packages/ruby-wasm-wasi/example) for more details.

```html
<html>
<script src="https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/browser.umd.js"></script>
<script>
const { DefaultRubyVM } = window["ruby-wasm-wasi"];
const main = async () => {
// Fetch and instntiate WebAssembly binary
// Fetch and instantiate WebAssembly binary
const response = await fetch(
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
// (only nightly release for now)
Expand Down
2 changes: 1 addition & 1 deletion packages/npm-packages/ruby-wasm-wasi/example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Example for ruby-wasm-wasi

This is a simple example of how to use the `ruby-wasm-wasi` faimily packages
This is a simple example of how to use the `ruby-wasm-wasi` family packages

## For browser

Expand Down