From d09205aebc36b4e9eb3de0e1115c9e58430bad62 Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Fri, 3 Apr 2020 10:01:35 +0200 Subject: [PATCH] Another toplevel fix. --- gitlab-pages/docs/reference/toplevel.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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.