Skip to content

docs: fix unbalanced quote in macros.md #18120

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

Merged
merged 1 commit into from
Jul 13, 2023
Merged
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 docs/_docs/reference/metaprogramming/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Therefore, while evaluating the quote, it is not possible to accidentally rebind
If a quote is well typed, then the generated code is well typed.
This is a simple consequence of tracking the type of each expression.
An `Expr[T]` can only be created from a quote that contains an expression of type `T`.
Conversely, an `Expr[T]` can only be spliced in a location that expects a type `T.
Conversely, an `Expr[T]` can only be spliced in a location that expects a type `T`.
As mentioned before, `Expr` is covariant in its type parameter.
This means that an `Expr[T]` can contain an expression of a subtype of `T`.
When spliced in a location that expects a type `T, these expressions also have a valid type.
Expand Down