From 35b94b27159f4b3cce5d358ca4c20823ff88439e Mon Sep 17 00:00:00 2001 From: "Daniel P H Fox (Roblox)" Date: Fri, 8 Nov 2024 11:37:12 -0800 Subject: [PATCH] Not tuples! --- docs/syntax-named-function-type-returns.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/syntax-named-function-type-returns.md b/docs/syntax-named-function-type-returns.md index e8df66f..0fcc235 100644 --- a/docs/syntax-named-function-type-returns.md +++ b/docs/syntax-named-function-type-returns.md @@ -6,7 +6,7 @@ In alignment with [named function type arguments](./syntax-named-function-type-a ## Motivation -Luau does not include semantic information when describing a function returning a tuple of values. This is especially a problem when they can't be distinguished by type alone: +Luau does not include semantic information when describing a function returning multiple values. This is especially a problem when they can't be distinguished by type alone: ```Lua -- are the euler angles returned in order of application, or alphabetical (XYZ) order? @@ -56,7 +56,7 @@ toQuat: () -> (x: number, y: number, z: number, w: number) ## Design -This proposal mirrors the existing named function type argument syntax and allows it to be used in return position. This allows returned tuples to be annotated with their contents. +This proposal mirrors the existing named function type argument syntax and allows it to be used in return position. This allows returned values to be annotated with their contents. This is added to all locations where return types can be defined: ```Lua