fix lists docs regression (#16981)
This commit is contained in:
parent
aac8f67573
commit
41d32c3ea3
1 changed files with 14 additions and 21 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue