mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
Fix typo
This commit is contained in:
1 parent
c7e86f0cfe
commit
26d5a43999
1 file changed
+2
-2
@@ -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
|
[text/template]: https://pkg.go.dev/text/template
|
||||||
|
|
||||||
{{% note %}}
|
{{% 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 %}}
|
{{% /note %}}
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
@@ -80,7 +80,7 @@ See additional examples in the [partial templates] section.
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
{{% note %}}
|
{{% 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 %}}
|
{{% /note %}}
|
||||||
|
|
||||||
A partial that returns a value must contain only one `return` statement, placed at the end of the template.
|
A partial that returns a value must contain only one `return` statement, placed at the end of the template.
|
||||||
|
|||||||
Reference in new issue
Block a user