From b48726f3706e2b3000cc1876cc5236c7c4351bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maja=20K=C4=85dzio=C5=82ka?= Date: Mon, 5 Feb 2024 18:36:43 +0100 Subject: [PATCH] doc: clarify where to get a ConstToken --- src/const_api.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/const_api.rs b/src/const_api.rs index c4d3b5b..e398da7 100644 --- a/src/const_api.rs +++ b/src/const_api.rs @@ -5,6 +5,10 @@ use core::marker::PhantomData; /// /// Some `const fn`s in this crate will need an instance of this type /// for some type-level information usually provided by traits. +/// +/// A token can be obtained from [`BitFlags::CONST_TOKEN`]. The relevant types +/// should be readily inferred from context. +/// /// For an example of usage, see [`not_c`][BitFlags::not_c]. pub struct ConstToken(BitFlags);