Move around commend in recursion sample for better rendering

This way the commend renders next to the right code block
This commit is contained in:
Eli Bendersky
2022-01-28 09:26:30 -08:00
parent 57ac312e30
commit 2885fc2298
3 changed files with 6 additions and 6 deletions

View File

@@ -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))

View File

@@ -1,2 +1,2 @@
02b9ee049def729d92a63fa13eddef5ce5358640
yDJXBAPUR7V
9ac9b5af828c33eb20dd322fd1a991334242c4b3
7hD-3-bIuSp