From 22b0fbca31757e803c0e75e1aaef5daaec95bd15 Mon Sep 17 00:00:00 2001 From: David Boyne Date: Mon, 9 Sep 2024 17:23:29 +0100 Subject: [PATCH] Update example_versioned_docs/version-latest/17-recursion.md Co-authored-by: Chris Rybicki --- example_versioned_docs/version-latest/17-recursion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_versioned_docs/version-latest/17-recursion.md b/example_versioned_docs/version-latest/17-recursion.md index 79cb6d69..fee43024 100644 --- a/example_versioned_docs/version-latest/17-recursion.md +++ b/example_versioned_docs/version-latest/17-recursion.md @@ -8,8 +8,8 @@ keywords: [Wing language, variadic] --- ```js playground example title="main.w" -let fact = (n: num):num => { - if(n == 0){ +let fact = (n: num): num => { + if n == 0 { return 1; } return n * fact(n - 1);