From d54ae971c8a38c5ac4a19044f42986300196ce97 Mon Sep 17 00:00:00 2001 From: Bryan Soto Date: Thu, 18 Jul 2024 18:09:23 -0700 Subject: [PATCH 1/2] Update introduction.md Minor typo and inconsistent use of spelling of behavior/behaviour. --- exercises/concept/expenses/.docs/introduction.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/expenses/.docs/introduction.md b/exercises/concept/expenses/.docs/introduction.md index a88cb46a1..1b9c7c82a 100644 --- a/exercises/concept/expenses/.docs/introduction.md +++ b/exercises/concept/expenses/.docs/introduction.md @@ -22,8 +22,8 @@ greeting = espGreeting fmt.Println(greeting("Alice")) // ¡Hola Alice, mucho gusto! ``` -Function values provide an opportunity to parametrize functions not only with data but with behavior too. -In the following example, we are passing behaviour to the `dialog` function via the `greetingFunc` parameter: +Function values provide an opportunity to parameterize functions not only with data but with behavior too. +In the following example, we are passing behavior to the `dialog` function via the `greetingFunc` parameter: ```go func dialog(name string, greetingFunc func(string) string) { From f5b36b94276e5d9566c9f501d6c551abc06849ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santos?= Date: Mon, 29 Jul 2024 12:57:24 +0100 Subject: [PATCH 2/2] Fix other occurrences of the typos --- concepts/first-class-functions/about.md | 4 ++-- concepts/first-class-functions/introduction.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/concepts/first-class-functions/about.md b/concepts/first-class-functions/about.md index dc9a4dd94..4ba268ad0 100644 --- a/concepts/first-class-functions/about.md +++ b/concepts/first-class-functions/about.md @@ -22,8 +22,8 @@ greeting = espGreeting fmt.Println(greeting("Alice")) // ¡Hola Alice, mucho gusto! ``` -Function values provide an opportunity to parametrize functions not only with data but with behavior too. -In the following example, we are passing behaviour to the `dialog` function via the `greetingFunc` parameter: +Function values provide an opportunity to parameterize functions not only with data but with behavior too. +In the following example, we are passing behavior to the `dialog` function via the `greetingFunc` parameter: ```go func dialog(name string, greetingFunc func(string) string) { diff --git a/concepts/first-class-functions/introduction.md b/concepts/first-class-functions/introduction.md index f19e4b1f4..be99015f4 100644 --- a/concepts/first-class-functions/introduction.md +++ b/concepts/first-class-functions/introduction.md @@ -22,8 +22,8 @@ greeting = espGreeting fmt.Println(greeting("Alice")) // ¡Hola Alice, mucho gusto! ``` -Function values provide an opportunity to parametrize functions not only with data but with behavior too. -In the following example, we are passing behaviour to the `dialog` function via the `greetingFunc` parameter: +Function values provide an opportunity to parameterize functions not only with data but with behavior too. +In the following example, we are passing behavior to the `dialog` function via the `greetingFunc` parameter: ```go func dialog(name string, greetingFunc func(string) string) {