mirror of https://github.com/kdl-org/kdl-rs.git
Mention comments and whitespace in `format` accessors
This commit is contained in:
parent
c904e025a2
commit
5c143b5a9f
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue