From 00e89454ec4eddfcfa3515bf680580917e4898bd Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Wed, 11 Mar 2015 16:22:24 -0700 Subject: [PATCH] Nominalized 'shallow copy' I mis-parsed 'shallow copies' as adjective noun, instead of as a compound verb. I've adjusted the text to make it easier to parse on the first read, which should also help ESL learners to be able to parse it easier. --- docs/docs/10.7-update.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/10.7-update.md b/docs/docs/10.7-update.md index d50658330f..873a85e4bf 100644 --- a/docs/docs/10.7-update.md +++ b/docs/docs/10.7-update.md @@ -39,7 +39,7 @@ var newData = extend(myData, { }); ``` -While this is fairly performant (since it only shallow copies `log n` objects and reuses the rest), it's a big pain to write. Look at all the repetition! This is not only annoying, but also provides a large surface area for bugs. +While this is fairly performant (since it only makes a shallow copy of `log n` objects and reuses the rest), it's a big pain to write. Look at all the repetition! This is not only annoying, but also provides a large surface area for bugs. `update()` provides simple syntactic sugar around this pattern to make writing this code easier. This code becomes: