]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typo
author吴杨帆 <39647285+leno23@users.noreply.github.com>
Thu, 21 Aug 2025 09:39:55 +0000 (17:39 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Aug 2025 09:39:55 +0000 (17:39 +0800)
packages/reactivity/src/arrayInstrumentations.ts

index e031df4fe10774e8e1c828d10484a47cb416ab10..5bb955bfeddde2fa69b268f59167632c507a63ae 100644 (file)
@@ -107,7 +107,7 @@ export const arrayInstrumentations: Record<string | symbol, Function> = <any>{
     return reactiveReadArray(this).join(separator)
   },
 
-  // keys() iterator only reads `length`, no optimisation required
+  // keys() iterator only reads `length`, no optimization required
 
   lastIndexOf(...args: unknown[]) {
     return searchProxy(this, 'lastIndexOf', args)
@@ -200,7 +200,7 @@ function iterator(
   wrapValue: (value: any) => unknown,
 ) {
   // note that taking ARRAY_ITERATE dependency here is not strictly equivalent
-  // to calling iterate on the proxified array.
+  // to calling iterate on the proxied array.
   // creating the iterator does not access any array property:
   // it is only when .next() is called that length and indexes are accessed.
   // pushed to the extreme, an iterator could be created in one effect scope,