From 26d5a439997704e0ccb03e2662b2d06d2eda472d Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 14 Nov 2023 18:52:26 -0800 Subject: [PATCH] Fix typo --- content/en/functions/go-template/return.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/functions/go-template/return.md b/content/en/functions/go-template/return.md index 847a59f00..2a166c718 100644 --- a/content/en/functions/go-template/return.md +++ b/content/en/functions/go-template/return.md @@ -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 @@ -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.