Skip to content

Commit

Permalink
Fix other occurrences of the typos
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerfcsantos committed Jul 29, 2024
1 parent d54ae97 commit f5b36b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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

0 comments on commit f5b36b9

Please sign in to comment.