Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
TianyiShi2001 authored and dginev committed Jun 18, 2021
1 parent 918d24f commit 5edc610
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/readonly/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl RoNode {
NodeType::from_int(xmlGetNodeType(self.0))
}

/// Returns true iff it is a text node
/// Returns true if it is a text node
pub fn is_text_node(self) -> bool {
self.get_type() == Some(NodeType::TextNode)
}
Expand Down
4 changes: 2 additions & 2 deletions src/tree/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ impl Document {
}
}

/// Serializes a `Node` owned by this `Document
/// Serializes a `Node` owned by this `Document`
pub fn node_to_string(&self, node: &Node) -> String {
unsafe {
// allocate a buffer to dump into
Expand All @@ -278,7 +278,7 @@ impl Document {
node_string
}
}
/// Serializes a `RoNode` owned by this `Document
/// Serializes a `RoNode` owned by this `Document`
pub fn ronode_to_string(&self, node: &RoNode) -> String {
unsafe {
// allocate a buffer to dump into
Expand Down
2 changes: 1 addition & 1 deletion src/tree/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl Node {
}
}

/// Returns true iff it is a text node
/// Returns true if it is a text node
pub fn is_text_node(&self) -> bool {
self.get_type() == Some(NodeType::TextNode)
}
Expand Down

0 comments on commit 5edc610

Please sign in to comment.