Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring authored Nov 15, 2023
1 parent c7e86f0 commit 26d5a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/functions/go-template/return.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A `return` statement without a value returns an empty string of type `template.H
[text/template]: https://pkg.go.dev/text/template

{{% note %}}
Unlike `return` statements in other languages, Hugo executes the first occurence of the `return` statement regardless of its position within logical blocks. See [usage](#usage) notes below.
Unlike `return` statements in other languages, Hugo executes the first occurrence of the `return` statement regardless of its position within logical blocks. See [usage](#usage) notes below.
{{% /note %}}

## Example
Expand Down Expand Up @@ -80,7 +80,7 @@ See additional examples in the [partial templates] section.
## Usage

{{% note %}}
Unlike `return` statements in other languages, Hugo executes the first occurence of the `return` statement regardless of its position within logical blocks
Unlike `return` statements in other languages, Hugo executes the first occurrence of the `return` statement regardless of its position within logical blocks
{{% /note %}}

A partial that returns a value must contain only one `return` statement, placed at the end of the template.
Expand Down

0 comments on commit 26d5a43

Please sign in to comment.