fix(serialization.md): fix the name of a derive macro

It should be like this since in the next sentence, it is specified that this should generate an implementation.
This commit is contained in:
İsmail Arılık 2023-07-27 16:31:54 +03:00 committed by Tshepang Mbambo
parent fb00c85bd6
commit 25ca6c5937
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ and `Encodable`.
only allow decoding by [`rustc_metadata::rmeta::encoder::EncodeContext`] and only allow decoding by [`rustc_metadata::rmeta::encoder::EncodeContext`] and
[`rustc_metadata::rmeta::decoder::DecodeContext`]. These are used for types [`rustc_metadata::rmeta::decoder::DecodeContext`]. These are used for types
that contain `rustc_metadata::rmeta::Lazy`. that contain `rustc_metadata::rmeta::Lazy`.
- `TyEncodable` and `TyDecoder` generate implementation that apply to any - `TyEncodable` and `TyDecodable` generate implementation that apply to any
`TyEncoder` or `TyDecoder`. These should be used for types that are only `TyEncoder` or `TyDecoder`. These should be used for types that are only
serialized in crate metadata and/or the incremental cache, which is most serialized in crate metadata and/or the incremental cache, which is most
serializable types in `rustc_middle`. serializable types in `rustc_middle`.