1
Fork 0

Add support for tuple structs' fields documentation

This commit is contained in:
Guillaume Gomez 2021-07-25 14:48:57 +02:00
parent 478126c0f3
commit ec76b6eedd
2 changed files with 12 additions and 9 deletions

View file

@ -2007,6 +2007,9 @@ fn sidebar_struct(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, s: &clea
}
sidebar.push_str("</div>");
} else if let CtorKind::Fn = s.struct_type {
sidebar
.push_str("<h3 class=\"sidebar-title\"><a href=\"#fields\">Tuple Fields</a></h3>");
}
}