Merge pull request #92 from status-im/jordan/fix-SortedSet-naming

Fix canonical name
This commit is contained in:
Jordan Hrycaj 2021-11-29 09:58:55 +00:00 committed by GitHub
commit 3b9e906a18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -64,6 +64,8 @@ export
RbInfo,
RbResult,
`isRed=`, # no need to export all of `rbtree_desc`
`linkLeft=`,
`linkRight=`,
results
type
@ -129,7 +131,7 @@ proc move*[K,V](sl: var SortedSet[K,V]): SortedSet[K,V] =
result.tree = sl.tree
sl.init
proc reset*[K,V](sl: var SortedSet[K,V]) =
proc clear*[K,V](sl: var SortedSet[K,V]) =
## Reset list descriptor to its inital value. This function also de-registers
## and flushes all traversal descriptors of type `SortedSetWalkRef`.
sl.tree.rbTreeReset(clup = proc(c: var SortedSetItemRef[K,V]) = c.slstClup)