From cc464a6e56e18fce98e51c31fcc85682fa8ae7f8 Mon Sep 17 00:00:00 2001 From: Mykyta Ivanchenko Date: Thu, 15 Oct 2020 04:53:49 +0300 Subject: [PATCH] fix(learn): Possible semantic error in explanation comment (#39813) * Possible semantic error "identical" generally means that both variables are linked to exact same array which is not the case: ``` thisArray !== thatArray ``` Maybe "similar" or other word could be used instead * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md Made the comment more accurate Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> --- .../copy-an-array-with-the-spread-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md index ff6bb4149e..0d6c1f3b62 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-data-structures/copy-an-array-with-the-spread-operator.md @@ -14,7 +14,7 @@ In practice, we can use the spread operator to copy an array like so: let thisArray = [true, true, undefined, false, null]; let thatArray = [...thisArray]; // thatArray equals [true, true, undefined, false, null] -// thisArray remains unchanged, and is identical to thatArray +// thisArray remains unchanged and thatArray contains the same elements as thisArray ```