Skip to content

Fix various typos #8

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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 example-code/app/fordexample.hoon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/- fordex=fordexample, *fordexample2
/+ *server, default-agent, base=base64
/+ *server, default-agent
:: evaluate Hoon code
/= n2w /lib/number-to-words
:: mark example
Expand Down
2 changes: 1 addition & 1 deletion ford.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This works in exactly the same way as `/+`, with the difference that it looks in
We've seen `default-agent` a lot already. It just gets used once, on line 27.

## `/=` Import the Evaluation of a Hoon File
In line 4, we use `/=`. The `/=` rune imports the result of building a hoon file from a user-specified path (the second argument, `/lib/number-to-words`), wrapping it in a face specified by the first argument (`n2w`). The final /hoon at the end of the path must be omitted. This is similar to `` and `/-`, but just allows us to import from any directory.
In line 4, we use `/=`. The `/=` rune imports the result of building a hoon file from a user-specified path (the second argument, `/lib/number-to-words`), wrapping it in a face specified by the first argument (`n2w`). The final /hoon at the end of the path must be omitted. This is similar to `/+` and `/-`, but just allows us to import from any directory.

Run `:fordexample %evaluate-hoon-example`, and you'll see how we now have access to the `to-words` arm in `number-to-words`.

Expand Down
2 changes: 1 addition & 1 deletion lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Let's look at the code of our `on-init` arm:
[%pass /bind %arvo %e %connect [~ /'~lifecycle'] %lifecycle]
==
```
We see that it returns a `(quip card _this)`. As mentioned in the [last lesson](arms.md), this type means a `list` of `card`, along with `_this_` at the end (short for `$_(this)`: the type of `this`, our core).
We see that it returns a `(quip card _this)`. As mentioned in the [last lesson](arms.md), this type means a `list` of `card`, along with `_this` at the end (short for `$_(this)`: the type of `this`, our core).

Gall arms that return this structure are passing 0 or more actions (`card`s) back to Gall to perform, and also return a new state of our app to Gall. You can see more detail on the structure of cards in the [types appendix](appendix_types.md)--this one is an `arvo-note`. It starts with `%pass`, which means it's like a function call. The `%e` is for "Eyre", the Arvo networking vane. This is a command to listen for incoming HTTP requests on address `/~lifecycle` of our ship. We'll explore this more in the [HTTP lesson](http.md).

Expand Down
2 changes: 1 addition & 1 deletion workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ This can be done at the command line like so:
cp -r your_code_directory/* your_pier_directory/app/
```

You can also use a [script like this one](https://github.com/timlucmiptev/gall-guide/blob/master/example-code/install.sh) to copy all Gall directories to your pier.
You can also use a [script like this one](https://github.com/timlucmiptev/gall-guide/blob/master/install.sh) to copy all Gall directories to your pier.

### Use `create-landscape-app` to Sync Files to Your Pier
Once we begin creating Landscape apps, we will able to use `create-landscape-app` to monitor our JS and Hoon files, and copy them to our ship as they're updated.
Expand Down