From c716c5c7abc684727ff7b761584552ccc6572f31 Mon Sep 17 00:00:00 2001 From: mhasanmhasan <110221010+mhasanmhasan@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:52:23 +0530 Subject: [PATCH 1/3] Update readme.md --- course/13-channels/exercises/6-range/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` From 2de60c574b04f02133bc669d45a657e2e75f54f4 Mon Sep 17 00:00:00 2001 From: mhasanmhasan <110221010+mhasanmhasan@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:52:55 +0530 Subject: [PATCH 2/3] Update complete.go --- course/13-channels/exercises/6-range/complete.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("==============================") } From 2c5a7a41d913a0e717213ab73e9dcc4f3c0c0430 Mon Sep 17 00:00:00 2001 From: mhasanmhasan <110221010+mhasanmhasan@users.noreply.github.com> Date: Wed, 8 Oct 2025 15:53:09 +0530 Subject: [PATCH 3/3] Update code.go --- course/13-channels/exercises/6-range/code.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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("==============================") }