Skip to content

Commit

Permalink
Update introduction.md
Browse files Browse the repository at this point in the history
Minor typo and inconsistent use of spelling of behavior/behaviour.
  • Loading branch information
bryansoto authored Jul 19, 2024
1 parent 4b4015e commit d54ae97
Showing 1 changed file with 2 additions and 2 deletions.
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 d54ae97

Please sign in to comment.