]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(comments): dep changed from set to map (#10019) [ci skip]
authorLiuSeen <91084928+liuseen-l@users.noreply.github.com>
Mon, 8 Jan 2024 06:19:07 +0000 (14:19 +0800)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 06:19:07 +0000 (14:19 +0800)
packages/reactivity/src/reactiveEffect.ts

index 09985e1eac3d09afc17062818178798505f2dbfd..6bf0e75115a336634c4e49d80e7bd062593c7461 100644 (file)
@@ -13,7 +13,7 @@ import {
 // The main WeakMap that stores {target -> key -> dep} connections.
 // Conceptually, it's easier to think of a dependency as a Dep class
 // which maintains a Set of subscribers, but we simply store them as
-// raw Sets to reduce memory overhead.
+// raw Maps to reduce memory overhead.
 type KeyToDepMap = Map<any, Dep>
 const targetMap = new WeakMap<object, KeyToDepMap>()