summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorinkling <27819662+driftsignal@users.noreply.github.com>2024-04-25 13:06:49 -0400
committerGitHub <noreply@github.com>2024-04-25 10:06:49 -0700
commit8fb3356473ede59747aaebf489f63ffa9df5ca2e (patch)
tree1a88dfc93436a1dde94d1c00378d4fb6403ba2a4
parenta41ac723aedb3b698856601a4d56374fb79424cb (diff)
[hy/en] drop square brackets for conditionals (#4908)
-rw-r--r--hy.html.markdown9
1 files changed, 3 insertions, 6 deletions
diff --git a/hy.html.markdown b/hy.html.markdown
index 5eddbf55..fc37d537 100644
--- a/hy.html.markdown
+++ b/hy.html.markdown
@@ -159,12 +159,9 @@ True ; => True
; nest multiple if else if clauses with cond
(cond
- [(= someval 42)
- (print "Life, universe and everything else!")]
- [(> someval 42)
- (print "val too large")]
- [(< someval 42)
- (print "val too small")])
+ (= someval 42) (print "Life, universe and everything else!")
+ (> someval 42) (print "val too large")
+ (< someval 42) (print "val too small"))
; group statements with do, these are executed sequentially
; forms like defn have an implicit do