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:
@@ -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))
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
02b9ee049def729d92a63fa13eddef5ce5358640
|
||||
yDJXBAPUR7V
|
||||
9ac9b5af828c33eb20dd322fd1a991334242c4b3
|
||||
7hD-3-bIuSp
|
||||
|
||||
Reference in New Issue
Block a user