Skip to content

Commit

Permalink
Fix typo on "parameterize" and make "behavior" be used consistently (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bryansoto authored Jul 29, 2024
1 parent d90fdc3 commit dbb277d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions concepts/first-class-functions/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions concepts/first-class-functions/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/expenses/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit dbb277d

Please sign in to comment.