diff --git a/gitlab-pages/docs/reference/toplevel.md b/gitlab-pages/docs/reference/toplevel.md index 4ed93379a..91a39aa3b 100644 --- a/gitlab-pages/docs/reference/toplevel.md +++ b/gitlab-pages/docs/reference/toplevel.md @@ -13,10 +13,10 @@ These functions are available without any needed prefix. function is_nat: int -> option(nat) - + val is_nat: int -> nat option - + let is_nat: int => option(nat) @@ -25,10 +25,10 @@ Convert an `int` to a `nat` if possible. function abs: int -> nat - + val abs: int -> nat - + let abs: int => nat @@ -37,10 +37,10 @@ Cast an `int` to `nat`. function int: nat -> int - + val int: nat -> int - + let int: nat => int @@ -49,10 +49,10 @@ Cast an `nat` to `int`. const unit: unit - + val unit: unit - + let (): unit @@ -62,10 +62,10 @@ A helper to create a unit. function failwith : string -> unit -function failwith : string -> unit +val failwith : string -> unit -function failwith : string -> unit +let failwith : string => unit Cause the contract to fail with an error message. @@ -77,10 +77,10 @@ Cause the contract to fail with an error message. function assert : bool -> unit -function assert : bool -> unit +val assert : bool -> unit -function assert : bool -> unit +let assert : bool => unit Check if a certain condition has been met. If not the contract will fail.