Skip to content

Commit 71d7c7f

Browse files
committed
Improve documentation
1 parent 7268dcb commit 71d7c7f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/lib.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,16 @@ impl ToJson for RefMap {
455455

456456
/// Interactive HTML BOM structure
457457
///
458+
/// The top-level structure to build & generate a HTML BOM.
459+
///
460+
/// <div class="warning">
461+
/// Please note that this struct is not completely fool-proof as it does not
462+
/// validate lots of the added data. So make sure you add only valid BOM data.
463+
/// Only the most important things are validated to avoid generating completely
464+
/// broken HTML pages: Footprint IDs in BOM rows, and number of fields in
465+
/// footprints.
466+
/// </div>
467+
///
458468
/// # Examples
459469
///
460470
/// ```
@@ -512,13 +522,6 @@ impl ToJson for RefMap {
512522
/// // Add BOM rows (designators and their footprint IDs).
513523
/// ibom.bom_front.push(vec![RefMap::new("R1", id)]);
514524
/// ```
515-
///
516-
/// <div class="warning">
517-
/// Please note that this struct is not completely fool-proof regarding as
518-
/// it does not validate lots of the added data, so make sure you add only
519-
/// valid BOM data. Only the most important things are validated: Footprint IDs
520-
/// in BOM rows, and number of fields in footprints.
521-
/// </div>
522525
#[non_exhaustive]
523526
pub struct InteractiveHtmlBom {
524527
// Metadata

0 commit comments

Comments
 (0)