on master help sign in
Merge pull request #1026 from hosted-fornet/hoon-school-libraries-typo

Fix hoon school libraries typos

commit3173facd4908e6fed8264f89786e233a03067f72 authorpoprox <51337059+drbeefsupreme@users.noreply.github.com> dateTue 2 Mar 2021, 15:58 (6 years ago) parent3409ce360079c1
1 file changed+2−2
tutorials/hoon/hoon-school/libraries.md+2−2
tutorials/hoon/hoon-school/libraries.md+2−2
@@ -151,11 +151,11 @@ Finally, in the code above, we come to `shuffle-deck`. This gate takes two argum
151151
152152Next, with `=/ random ~(. og entropy)`, we feed the `og` core the entropy it needs in preparation for using it. Then, with `=/ remaining (lent unshuffled)`, we get the length of the unshuffled deck with `lent`.
153153
154−`?: =(remaining 1)` checks if have only one card remaining. If that's true, we produce a cell of `shuffled` and the one card left in `unshuffled`. We use the `:_` rune here, so that the "heavier" hoon is at the bottom of the expression.
154+`?: =(remaining 1)` checks if we have only one card remaining. If that's true, we produce a cell of `shuffled` and the one card left in `unshuffled`. We use the `:_` rune here, so that the "heavier" hoon is at the bottom of the expression.
155155
156156If the above conditional evaluates to false, we are going to do a little work. `=^` is a rune that pins the head of a pair and changes a leg in the subject with the tail. It's useful for interacting with the `og` core arms, as many of them produce a pair of a random numbers and the next state of the core. We're going to put the random number in the subject with the face `index` and change `random` to be the next core.
157157
158−With completed, we use `%=` to call `$` to recurse back up to `|-` with a few changes.
158+With that completed, we use `%=` to call `$` to recurse back up to `|-` with a few changes.
159159
160160`shuffled` gets the `darc` from `unshuffled` at `index` added to the front of it.
161161