From 716bb7c3eb6c93b2cbf3280e8e969da7b4f9b29c Mon Sep 17 00:00:00 2001 From: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> Date: Fri, 3 Feb 2023 10:26:47 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com> --- docs/_pages/syntax.md | 2 +- docs/_posts/2023-02-02-luau-string-interpolation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_pages/syntax.md b/docs/_pages/syntax.md index 8e2f9e00..e1683fa5 100644 --- a/docs/_pages/syntax.md +++ b/docs/_pages/syntax.md @@ -222,7 +222,7 @@ The default iteration order for tables is specified to be consecutive for elemen ## String interpolation -Luau adds additional way to define string values that allows you to place runtime expressions directly inside specific spots of the literal. +Luau adds an additional way to define string values that allows you to place runtime expressions directly inside specific spots of the literal. This is a more ergonomic alternative over using `string.format` or `("literal"):format`. diff --git a/docs/_posts/2023-02-02-luau-string-interpolation.md b/docs/_posts/2023-02-02-luau-string-interpolation.md index 3b68909a..90a9eda1 100644 --- a/docs/_posts/2023-02-02-luau-string-interpolation.md +++ b/docs/_posts/2023-02-02-luau-string-interpolation.md @@ -15,7 +15,7 @@ print(`The lock combination is {table.concat(combos)}. Again, {table.concat(comb --> The lock combination is 27185. Again, 2, 7, 1, 8, 5. ``` -String interpolation also composes well with `__tostring` metamethod. +String interpolation also composes well with the `__tostring` metamethod. ```lua local balance = setmetatable({ value = 500 }, {