From ce117d73133a371d394bda9c112d4e40b978b3d1 Mon Sep 17 00:00:00 2001 From: Brujo Benavides Date: Mon, 1 Apr 2019 08:47:52 -0300 Subject: Remove description of structure of opaque type `gb_trees:tree/2`. Since it's an opaque type, its internal structure shouldn't be part of the docs. Otherwise it leads misguided devs to the assumption that they can pattern-match on it, when they shouldn't. --- lib/stdlib/doc/src/gb_trees.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/stdlib/doc') diff --git a/lib/stdlib/doc/src/gb_trees.xml b/lib/stdlib/doc/src/gb_trees.xml index 570c9c7cb6..08aa1865e8 100644 --- a/lib/stdlib/doc/src/gb_trees.xml +++ b/lib/stdlib/doc/src/gb_trees.xml @@ -42,11 +42,8 @@
Data Structure - -{Size, Tree} - -

Tree is composed of nodes of the form {Key, Value, Smaller, - Bigger} and the "empty tree" node nil.

+

Trees and iterators are built using opaque data structures that should + not be pattern-matched from outside this module.

There is no attempt to balance trees after deletions. As deletions do not increase the height of a tree, this should be OK.

-- cgit v1.2.3