rust-scraper / ego-tree

Vec-backed ID-tree
https://docs.rs/ego-tree
ISC License
45 stars 16 forks source link

Fixed minor doc typo #4

Closed ghost closed 7 years ago

ghost commented 7 years ago

Closes #3.

Does it still panic if the node is an orphan with this method?

causal-agent commented 7 years ago

Does it still panic if the node is an orphan with this method?

Yes, it does:

assert!(self.node().parent.is_some());