Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in content/en/functions/fmt #2254

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/functions/fmt/Errorf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```

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
[`printf`]: /functions/fmt/printf
Expand Down
2 changes: 1 addition & 1 deletion content/en/functions/fmt/Erroridf.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

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:

Expand Down