Ver Fonte

chore: fix typo

吴杨帆 há 10 meses atrás
pai
commit
cde15b07bf
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/reactivity/src/arrayInstrumentations.ts

+ 2 - 2
packages/reactivity/src/arrayInstrumentations.ts

@@ -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,