Add missing #[doc] attrs

This commit is contained in:
wtfsck 2021-08-20 19:59:14 +02:00
parent f3a5da52c5
commit b09e4aa9ef
1 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ pub trait SymbolResolver {
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub enum SymResString<'a> {
/// Contains a `&'a str`
Str(&'a str),
Str(#[doc = "The str"] &'a str),
/// Contains a `String`
String(String),
String(#[doc = "The string"] String),
}
impl Default for SymResString<'_> {
#[must_use]
@ -103,9 +103,9 @@ impl<'a> SymResTextPart<'a> {
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub enum SymResTextInfo<'a> {
/// Text and color
Text(SymResTextPart<'a>),
Text(#[doc = "Text and color"] SymResTextPart<'a>),
/// Text and color (vector)
TextVec(&'a [SymResTextPart<'a>]),
TextVec(#[doc = "Text and color"] &'a [SymResTextPart<'a>]),
}
impl<'a> SymResTextInfo<'a> {