diff options
| author | Phil Schaf | 2015-11-14 23:24:56 +0100 |
|---|---|---|
| committer | Phil Schaf | 2015-11-14 23:24:56 +0100 |
| commit | 154165495d0db0227d0dc45f368f6dce1123a038 (patch) | |
| tree | 78ef11b3d0946b5b1a3c98ab3126f3a6a2a6bf15 /src/document_tree/mod.rs | |
| parent | 11d453f354c3bfd8f2c2f755c0246f3c2f526179 (diff) | |
| download | rust-rst-154165495d0db0227d0dc45f368f6dce1123a038.tar.bz2 | |
added some convenience conversions
Diffstat (limited to 'src/document_tree/mod.rs')
| -rw-r--r-- | src/document_tree/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/document_tree/mod.rs b/src/document_tree/mod.rs index cb54eb5..a9c4760 100644 --- a/src/document_tree/mod.rs +++ b/src/document_tree/mod.rs @@ -16,7 +16,8 @@ fn test() { use document_tree::HasChildren; let mut doc = dt::Document::default(); - let title = dt::Title::default(); + let mut title = dt::Title::default(); + title.append_child("Hi"); doc.append_child(title); println!("{:?}", doc); |
