Skip to content

Commit

Permalink
Merge pull request #172 from vmware-labs/gzurl/doc-typos
Browse files Browse the repository at this point in the history
doc: Fixing minor typos in documentation.
  • Loading branch information
gzurl authored Jul 6, 2023
2 parents 103f1cf + 0aef58b commit e4aca1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/docs/get-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Wasm Workers runs almost anywhere. Thanks to its portability, downloading and ru

First, you need to install `wws`:

```bash
```shell-session
curl -fsSL https://workers.wasmlabs.dev/install | bash
```

Now, you can check the different commands and options:

```bash
```shell-session
$ wws --help
A WebAssembly framework to develop and run serverless applications anywhere
Expand Down Expand Up @@ -44,13 +44,13 @@ Options:

You can pass a remote location, like a git repository, to `wws`. To try it, let's run one of the `js-basic` example from the Wasm Workers Server repository:

```bash
```shell-session
wws https://github.com/vmware-labs/wasm-workers-server.git -i --git-folder "examples/js-basic"
```

It automatically clones the git repository and loads the workers from the given folder (`examples/js-basic`):

```shell
```shell-session
⚙️ Preparing the project from: https://github.com/vmware-labs/wasm-workers-server.git
⚙️ Loading routes from: /tmp/dd21e3cd6d0f515301e1c7070e562af06074d9e8d10566179f97dba47e74cec9/examples/js-basic
⏳ Loading workers from 1 routes...
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/languages/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Workers based on JavaScript work out of the box with Wasm Workers Server. The se

1. Download `wws`:

```bash
```shell-session
curl -fsSL https://workers.wasmlabs.dev/install | bash
```
2. Run the [js-basic](https://github.com/vmware-labs/wasm-workers-server/tree/main/examples/js-basic) example from the Wasm Workers Server's repository:
```bash
```shell-session
wws https://github.com/vmware-labs/wasm-workers-server.git -i --git-folder "examples/js-basic"
```
Expand Down Expand Up @@ -99,10 +99,10 @@ To add a KV store to your worker, follow these steps:
const CACHE_KEY = "counter";
const reply = (request) => {
let counter = Cache.get("counter") || 0;
let counter = Cache.get(CACHE_KEY) || 0;
counter += 1;
Cache.set("counter", counter);
Cache.set(CACHE_KEY, counter);
return new Response(`Counter: ${counter}`);
}
Expand Down

0 comments on commit e4aca1b

Please sign in to comment.