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