Skip to content

Conversation

rodrigues
Copy link
Contributor

Hi there! 👋

This commit adds a little documentation about being able to use map.field inside guards.

I couldn't find in the docs any mention, thought it would be good to write there it's a possibility, what do you think?

Thanks!

# ...
:ok
end
```
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch!

I am not sure if this deserves its own section but we can add an entry to the list in ## Guards. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, I've added an entry there 👌

Copy link
Member

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

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

Hey Victor! Nice catch. 🙃

@josevalim josevalim merged commit 888eba7 into elixir-lang:main Jun 9, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@rodrigues rodrigues deleted the guard_map_field branch June 12, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants