浏览代码

docs: update func names

Yin Jifeng 3 年之前
父节点
当前提交
814235f145
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core/src/scopes.rs

+ 1 - 1
packages/core/src/scopes.rs

@@ -609,7 +609,7 @@ impl ScopeState {
 
     /// Create a subscription that schedules a future render for the reference component
     ///
-    /// ## Notice: you should prefer using prepare_update and get_scope_id
+    /// ## Notice: you should prefer using schedule_update_any and scope_id
     pub fn schedule_update(&self) -> Arc<dyn Fn() + Send + Sync + 'static> {
         let (chan, id) = (self.tasks.sender.clone(), self.scope_id());
         Arc::new(move || {