Skip to content

Commit

Permalink
Update docs/syntax_and_semantics/annotations/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <straightshoota@gmail.com>
  • Loading branch information
Blacksmoke16 and straight-shoota authored Dec 20, 2023
1 parent dc7d6c2 commit 916a7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/syntax_and_semantics/annotations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ WARNING: Annotations can only be read off of typed block parameters. See https:/

### Reading Multiple Annotations

If there are multiple annotations applied to the same node, the `#annotations(type : TypeNode)` method can be used to return an `ArrayLiteral` of all annotations of the provided *type*. An argless `#annotations` method also exists that will return *all* annotations, irrespective of their type.
The `#annotations` method returns an `ArrayLiteral` of *all* annotations on a type. Optionally, a `TypeNode` argument with the `#annotations(type : TypeNode)` method filters only annotations of the provided *type*.

```crystal
annotation MyAnnotation; end
Expand Down

0 comments on commit 916a7fd

Please sign in to comment.