mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 13:11:36 -04:00
Fix typos in content/en/functions/fmt
This commit is contained in:
parent
a3a40ff999
commit
f5d2f5ed49
@ -26,7 +26,7 @@ Like the [`printf`] function, the `errorf` function evaluates the format string
|
|||||||
{{ errorf "The %q shortcode requires a src parameter. See %s" .Name .Position }}
|
{{ errorf "The %q shortcode requires a src parameter. See %s" .Name .Position }}
|
||||||
```
|
```
|
||||||
|
|
||||||
Use the [`erroridf`] function to allow optional supression of specific errors.
|
Use the [`erroridf`] function to allow optional suppression of specific errors.
|
||||||
|
|
||||||
[`erroridf`]: /functions/fmt/erroridf
|
[`erroridf`]: /functions/fmt/erroridf
|
||||||
[`printf`]: /functions/fmt/printf
|
[`printf`]: /functions/fmt/printf
|
||||||
|
@ -22,7 +22,7 @@ The documentation for [Go's fmt package] describes the structure and content of
|
|||||||
|
|
||||||
Like the [`errorf`] function, the `erroridf` function evaluates the format string, prints the result to the ERROR log, then fails the build. Hugo prints each unique message once to avoid flooding the log with duplicate errors.
|
Like the [`errorf`] function, the `erroridf` function evaluates the format string, prints the result to the ERROR log, then fails the build. Hugo prints each unique message once to avoid flooding the log with duplicate errors.
|
||||||
|
|
||||||
Unlike the `errorf` function, you may surpress errors logged by the `erroridf` function by adding the messsage ID to the `ignoreErrors` array in your site configuration.
|
Unlike the `errorf` function, you may suppress errors logged by the `erroridf` function by adding the message ID to the `ignoreErrors` array in your site configuration.
|
||||||
|
|
||||||
This template code:
|
This template code:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user