瀏覽代碼

Fix doc build

David Peter 1 年之前
父節點
當前提交
c556dadd7d
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      book/src/list-functions-lists.md

+ 7 - 7
book/src/list-functions-lists.md

@@ -30,6 +30,13 @@ Prepend an element to a list.
 fn cons<A>(x: A, xs: List<A>) -> List<A>
 ```
 
+### `cons_end`
+Append an element to the end of a list.
+
+```nbt
+fn cons_end<A>(xs: List<A>, x: A) -> List<A>
+```
+
 ### `is_empty`
 Check if a list is empty.
 
@@ -72,13 +79,6 @@ Generate a range of integer numbers from `start` to `end` (inclusive).
 fn range(start: Scalar, end: Scalar) -> List<Scalar>
 ```
 
-### `cons_end`
-Append an element to the end of a list.
-
-```nbt
-fn cons_end<A>(xs: List<A>, x: A) -> List<A>
-```
-
 ### `reverse`
 Reverse the order of a list.