This commit is contained in:
Tshepang Mbambo 2023-02-21 15:56:16 +02:00 committed by GitHub
parent 74a6d8d10a
commit c7256e75c0
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ these attributes can also take a value that is the attribute name to look for
Other types have special behavior when used in a `Diagnostic` derive: Other types have special behavior when used in a `Diagnostic` derive:
- Any attribute applied to an `Option<T>` and will only emit a - Any attribute applied to an `Option<T>` will only emit a
subdiagnostic if the option is `Some(..)`. subdiagnostic if the option is `Some(..)`.
- Any attribute applied to a `Vec<T>` will be repeated for each element of the - Any attribute applied to a `Vec<T>` will be repeated for each element of the
vector. vector.