From 6cd28d200e0d018a4bbda7ee23a40f767b40ef74 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sun, 30 Dec 2018 15:34:43 +0100 Subject: [PATCH] binary_search_tree.rs: fix docs --- src/catar/binary_search_tree.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/catar/binary_search_tree.rs b/src/catar/binary_search_tree.rs index e1293e96..035eab54 100644 --- a/src/catar/binary_search_tree.rs +++ b/src/catar/binary_search_tree.rs @@ -70,11 +70,13 @@ fn copy_binary_search_tree_inner( /// /// This will produce the folowing output: /// -/// Copy 3 to 0 -/// Copy 1 to 1 -/// Copy 0 to 3 -/// Copy 2 to 4 -/// Copy 4 to 2 +/// ```no-compile +/// Copy 3 to 0 +/// Copy 1 to 1 +/// Copy 0 to 3 +/// Copy 2 to 4 +/// Copy 4 to 2 +/// ``` /// /// So this generates the following permuation: `[3,1,4,0,2]`.