fix lists docs regression (#16981)

This commit is contained in:
flywind 2021-02-09 05:19:11 -06:00 • committed by GitHub
commit 41d32c3ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,15 +13,11 @@
## * `singly linked rings <#SinglyLinkedRing>`_ (circular lists) ## * `singly linked rings <#SinglyLinkedRing>`_ (circular lists)
## * `doubly linked rings <#DoublyLinkedRing>`_ (circular lists) ## * `doubly linked rings <#DoublyLinkedRing>`_ (circular lists)
## ##
## ## # Basic Usage
## Basic Usage
## ===========
##
## Because it makes no sense to do otherwise, the `next` and `prev` pointers ## Because it makes no sense to do otherwise, the `next` and `prev` pointers
## are not hidden from you and can be manipulated directly for efficiency. ## are not hidden from you and can be manipulated directly for efficiency.
##
## Lists ## ## Lists
## -----
runnableExamples: runnableExamples:
var var
l = initDoublyLinkedList[int]() l = initDoublyLinkedList[int]()
@ -40,8 +36,7 @@ runnableExamples:
assert c.prev == nil assert c.prev == nil
assert b.next == nil assert b.next == nil
## Rings ## ## Rings
## -----
runnableExamples: runnableExamples:
var var
l = initSinglyLinkedRing[int]() l = initSinglyLinkedRing[int]()
@ -59,9 +54,7 @@ runnableExamples:
assert b.next == c assert b.next == c
assert c.next.next.next == c assert c.next.next.next == c
## See also ## # See also
## ========
##
## * `deques module <deques.html>`_ for double-ended queues ## * `deques module <deques.html>`_ for double-ended queues
## * `sharedlist module <sharedlist.html>`_ for shared singly-linked lists ## * `sharedlist module <sharedlist.html>`_ for shared singly-linked lists