From 91f9bbe7a2f7a2d0c72e207d5f90ae275e0c2df6 Mon Sep 17 00:00:00 2001 From: Novus Nota <68142933+novusnota@users.noreply.github.com> Date: Sat, 4 May 2024 20:20:49 +0200 Subject: [PATCH] fix: just the small bug The page will be modified as per #131 --- pages/book/functions.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/book/functions.mdx b/pages/book/functions.mdx index 37215d2f..308eb6fa 100644 --- a/pages/book/functions.mdx +++ b/pages/book/functions.mdx @@ -31,7 +31,7 @@ Extension functions allow you to implement extensions for any possible type. > The name of the first argument MUST be named `self` and the type of this argument is the type you are extending. ```tact -extends fun pow(self: Int, c: Int) { +extends fun pow(self: Int, c: Int): Int { let res: Int = 1; repeat(c) { res *= self;