diff --git a/course/13-channels/exercises/6-range/code.go b/course/13-channels/exercises/6-range/code.go index 9875e42..1aa69a3 100644 --- a/course/13-channels/exercises/6-range/code.go +++ b/course/13-channels/exercises/6-range/code.go @@ -5,7 +5,7 @@ import ( "time" ) -func concurrrentFib(n int) { +func concurrentFib(n int) { // ? } @@ -13,7 +13,7 @@ func concurrrentFib(n int) { func test(n int) { fmt.Printf("Printing %v numbers...\n", n) - concurrrentFib(n) + concurrentFib(n) fmt.Println("==============================") } diff --git a/course/13-channels/exercises/6-range/complete.go b/course/13-channels/exercises/6-range/complete.go index 2afc467..5260e38 100644 --- a/course/13-channels/exercises/6-range/complete.go +++ b/course/13-channels/exercises/6-range/complete.go @@ -5,7 +5,7 @@ import ( "time" ) -func concurrrentFib(n int) { +func concurrentFib(n int) { ch := make(chan int) go fibonacci(n, ch) @@ -18,7 +18,7 @@ func concurrrentFib(n int) { func test(n int) { fmt.Printf("Printing %v numbers...\n", n) - concurrrentFib(n) + concurrentFib(n) fmt.Println("==============================") } diff --git a/course/13-channels/exercises/6-range/readme.md b/course/13-channels/exercises/6-range/readme.md index dbc2d7b..e6aebf1 100644 --- a/course/13-channels/exercises/6-range/readme.md +++ b/course/13-channels/exercises/6-range/readme.md @@ -14,7 +14,7 @@ This example will receive values over the channel (blocking at each iteration if It's that time again, Mailio is hiring and we've been assigned to do the interview. For some reason, the [Fibonacci sequence](https://en.wikipedia.org/wiki/Fibonacci_number) is Mailio's interview problem of choice. We've been tasked with building a small toy program we can use in the interview. -Complete the `concurrrentFib` function. It should: +Complete the `concurrentFib` function. It should: * Create a new channel of `int`s * Call `fibonacci` in a goroutine, passing it the channel and the number of Fibonacci numbers to generate, `n`