From 5cafb35de153d687caffc5e532cfad50217a5058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Ar=C4=B1l=C4=B1k?= Date: Thu, 27 Jul 2023 16:50:38 +0300 Subject: [PATCH] fix(serialization.md): fix invalid `Lazy<[T]>` to valid `LazyArray` I am not totally sure that it should be like this but I am pretty sure because I couldn't find a type for `Lazy<[T]>` [here](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_metadata/rmeta/) so I opened a PR instead of an issue. Feel free to close this if it was a mistake (and sorry about that). --- src/serialization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialization.md b/src/serialization.md index 691d21bc2..e025b173d 100644 --- a/src/serialization.md +++ b/src/serialization.md @@ -130,7 +130,7 @@ some deserialization needs to be deferred from the initial loading of metadata. The [`LazyValue`] type wraps the (relative) offset in the crate metadata where a `T` has been serialized. There are also some variants, [`LazyArray`] and [`LazyTable`]. -The `Lazy<[T]>` and `LazyTable` type provide some functionality over +The `LazyArray` and `LazyTable` type provide some functionality over `Lazy>` and `Lazy>`: - It's possible to encode a `LazyArray` directly from an iterator, without