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

Add documentation for | operator in when #136

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

GuillaumeGomez
Copy link
Contributor

Just realized I forgot to add docs about the feature. ^^'

@@ -610,6 +610,15 @@ if not all possible values need an individual handling.
Because a `{% match %}` block could not generate valid code otherwise,
you have to provide at least one `{% when %}` case and/or an `{% else %}` case.

You can also match over multiple values at once:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe ↓?

Suggested change
You can also match over multiple values at once:
You can also match against multiple alternative patterns at once:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better indeed! 👍

@Kijewski Kijewski merged commit 5266209 into rinja-rs:master Aug 15, 2024
21 checks passed
@GuillaumeGomez GuillaumeGomez deleted the add-missing-doc branch August 15, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants