Skip to content

Commit

Permalink
Update recursive-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiemongeon1 authored Sep 27, 2024
1 parent e2415f6 commit 951825a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/md/writing-motoko/recursive-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A recursive type are types that contain the values of the same type. Recursive t

Motoko supports linked lists, one data structure that implements recursive types.

## Recursive lists
## Recursive types

``` motoko no-repl
type List<T> = ?(T, List<T>);
Expand Down Expand Up @@ -40,4 +40,4 @@ In this switch statement, the `last<T>` function is used recursively, since it i

## Resources

- [Recursive types](https://github.com/Web3NL/motoko-book/blob/main/src/advanced-types/recursive-types.md).
- [Recursive types](https://github.com/Web3NL/motoko-book/blob/main/src/advanced-types/recursive-types.md).

0 comments on commit 951825a

Please sign in to comment.