From 534e34b5ee15a5953501a8612f42da19097750b6 Mon Sep 17 00:00:00 2001 From: Stiopa Koltsov Date: Fri, 13 Sep 2024 21:54:48 -0700 Subject: [PATCH] Better documentation of DictType Reviewed By: JakobDegen Differential Revision: D62668748 fbshipit-source-id: 764c23f1202ebe01cdfb4577c0d3314aad1d86a7 --- starlark-rust/starlark/src/values/types/dict/dict_type.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starlark-rust/starlark/src/values/types/dict/dict_type.rs b/starlark-rust/starlark/src/values/types/dict/dict_type.rs index 031b635d6526..b1d3a905fb2d 100644 --- a/starlark-rust/starlark/src/values/types/dict/dict_type.rs +++ b/starlark-rust/starlark/src/values/types/dict/dict_type.rs @@ -26,10 +26,10 @@ use crate::values::UnpackAndDiscard; use crate::values::UnpackValue; use crate::values::Value; -/// A dict used just for display purposes. +/// A dict type marker. /// -/// `DictOf` requires `Unpack` to be implemented, and `Dict` does not take type parameters so -/// we need something for documentation generation. +/// [`StarlarkTypeRepr`] provides `dict[K, V]`. +/// [`UnpackValue`] implementation verifies the types of entries and discards them. pub struct DictType { k: PhantomData, v: PhantomData,