From 0f88bef9225c0af06d47d02cd116330e1c4e69e1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sat, 9 Jan 2021 17:03:58 +0000 Subject: [PATCH] doc fix --- docs/source/tree.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/tree.rst b/docs/source/tree.rst index 892bc41d..03d2b043 100644 --- a/docs/source/tree.rst +++ b/docs/source/tree.rst @@ -13,13 +13,13 @@ The following code creates and prints a tree with a simple text label:: from rich import print tree = Tree("Rich Tree") - print(root) + print(tree) With only a single ``Tree`` instance this will output nothing more than the text "Rich Tree". Things get more interesting when we call :meth:`~rich.tree.Tree.add` to add more branches to the Tree. The following code adds two more branches:: tree.add("foo") tree.add("bar") - print(root) + print(tree) The tree will now have two branches connected to the original tree with guide lines.