From 2885fc22986dd09e6b30ae1cd1176691506675f0 Mon Sep 17 00:00:00 2001
From: Eli Bendersky
Date: Fri, 28 Jan 2022 09:26:30 -0800
Subject: [PATCH] Move around commend in recursion sample for better rendering
This way the commend renders next to the right code block
---
examples/recursion/recursion.go | 2 +-
examples/recursion/recursion.hash | 4 ++--
public/recursion | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/examples/recursion/recursion.go b/examples/recursion/recursion.go
index 515a7ca..f0ce4e1 100644
--- a/examples/recursion/recursion.go
+++ b/examples/recursion/recursion.go
@@ -27,10 +27,10 @@ func main() {
if n < 2 {
return n
}
- return fib(n-1) + fib(n-2)
// Since `fib` was previously declared in `main`, Go
// knows which function to call with `fib` here.
+ return fib(n-1) + fib(n-2)
}
fmt.Println(fib(7))
diff --git a/examples/recursion/recursion.hash b/examples/recursion/recursion.hash
index 2157ee2..0260100 100644
--- a/examples/recursion/recursion.hash
+++ b/examples/recursion/recursion.hash
@@ -1,2 +1,2 @@
-02b9ee049def729d92a63fa13eddef5ce5358640
-yDJXBAPUR7V
+9ac9b5af828c33eb20dd322fd1a991334242c4b3
+7hD-3-bIuSp
diff --git a/public/recursion b/public/recursion
index 84f8aee..1ead826 100644
--- a/public/recursion
+++ b/public/recursion
@@ -43,7 +43,7 @@ Here’s a classic example.
- 
+ 
package main
|
@@ -116,7 +116,6 @@ before it’s defined.
if n < 2 {
return n
}
- return fib(n-1) + fib(n-2)
@@ -130,6 +129,7 @@ knows which function to call with fib
here.
+ return fib(n-1) + fib(n-2)
}
|
@@ -178,7 +178,7 @@ knows which function to call with fib
here.