diff --git a/src/document.rs b/src/document.rs index 6e34b13..329a32b 100644 --- a/src/document.rs +++ b/src/document.rs @@ -193,7 +193,7 @@ impl KdlDocument { &mut self.nodes } - /// Gets the formatting details for this entry. + /// Gets the formatting details (including whitespace and comments) for this entry. pub fn format(&self) -> Option<&KdlDocumentFormat> { self.format.as_ref() } diff --git a/src/entry.rs b/src/entry.rs index a9c44b3..319fa5d 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -112,7 +112,7 @@ impl KdlEntry { self.ty = Some(ty.into()); } - /// Gets the formatting details for this entry. + /// Gets the formatting details (including whitespace and comments) for this entry. pub fn format(&self) -> Option<&KdlEntryFormat> { self.format.as_ref() } diff --git a/src/node.rs b/src/node.rs index 9d1f63c..4489a15 100644 --- a/src/node.rs +++ b/src/node.rs @@ -246,7 +246,7 @@ impl KdlNode { self.children_mut().as_mut().unwrap() } - /// Gets the formatting details for this node. + /// Gets the formatting details (including whitespace and comments) for this node. pub fn format(&self) -> Option<&KdlNodeFormat> { self.format.as_ref() }