From 13f8947e38efe77f86d8165062253bab5e17434f Mon Sep 17 00:00:00 2001 From: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com> Date: Tue, 12 Apr 2022 18:10:06 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: boyned//Kampfkarren --- rfcs/function-and-table-types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfcs/function-and-table-types.md b/rfcs/function-and-table-types.md index 5438b3a5..dcf7a381 100644 --- a/rfcs/function-and-table-types.md +++ b/rfcs/function-and-table-types.md @@ -14,10 +14,10 @@ For example, the function: ```lua function succ(x) - if type(x) == "function" + if type(x) == "function" then return x() + 1 else - assert(type(x) == number) + assert(type(x) == "number") return x + 1 end end