From 0c08e489c069e93d3679ea199f135b37a0e3c01d Mon Sep 17 00:00:00 2001 From: Sigilante <57601680+sigilante@users.noreply.github.com> Date: Sun, 23 Apr 2023 14:12:58 -0500 Subject: [PATCH] Hotfix Hoon School --- content/guides/core/hoon-school/D-gates.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/guides/core/hoon-school/D-gates.md b/content/guides/core/hoon-school/D-gates.md index f00e5d2..32116b8 100644 --- a/content/guides/core/hoon-school/D-gates.md +++ b/content/guides/core/hoon-school/D-gates.md @@ -227,12 +227,12 @@ How can we control what kind of value a gate returns? Many programming language Remember `^-` kethep? We will use `^-` as a _fence_, a way of making sure only data matching the appropriate structure get passed on. ```hoon {% copy=true %} -:: Confirm whether a value is greater than one. +:: Confirm whether a value is greater than one by return 1 (if no) or 0 (if yes). |= a=@ud ^- @ud ?: (gth a 1) - %.n -%.y + 1 +0 ``` **This is the correct way to define a gate.** Frequent annotation of type with `^-` kethep fences is _essential_ to producing good Hoon code. From this point forward in Hoon School, we will hew to this standard.