From dbedcaacdcd20295ac037416352c11be987cf0a1 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com> Date: Fri, 8 Oct 2021 18:15:15 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> --- rfcs/property-writeonly.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rfcs/property-writeonly.md b/rfcs/property-writeonly.md index 7ffa75aa..edc60af6 100644 --- a/rfcs/property-writeonly.md +++ b/rfcs/property-writeonly.md @@ -87,7 +87,7 @@ end ``` has inferred type: ``` -f: (t: { p: set number, get q: number }) -> () +f: (t: { set p: number, get q: number }) -> () ``` indicating that `p` is used write-only but `q` is used read-only. @@ -109,9 +109,9 @@ contravariant. These are sometimes useful, for example: ```lua function move(src, tgt) - for i,v in ipairs(src) + for i,v in ipairs(src) do tgt[i] = src[i] - src[i] = null + src[i] = nil end end ```