Răsfoiți Sursa

chore: clarify comments

daiwei 1 lună în urmă
părinte
comite
6c85675522
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/runtime-vapor/src/componentSlots.ts

+ 2 - 2
packages/runtime-vapor/src/componentSlots.ts

@@ -162,8 +162,8 @@ export function getScopeOwner(): VaporComponentInstance | null {
  * Wrap a slot function to track the slot owner.
  *
  * This ensures:
- * 1. createSlot gets rawSlots from the correct component (slot owner)
- * 2. Elements inherit the slot owner's scopeId
+ * 1. createSlot gets rawSlots from the correct instance (slot owner)
+ * 2. elements inherit the slot owner's scopeId
  */
 export function withVaporCtx(fn: Function): BlockFn {
   const owner = getScopeOwner()