Skip to content

Commit 8945ab7

Browse files
authored
chore: fix some minor issues in the comments (#3872)
Signed-off-by: rustfix <771054535@qq.com>
1 parent b4d083e commit 8945ab7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/yew-agent/src/reactor/bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::Codec;
1717

1818
/// A connection manager for components interaction with oneshot workers.
1919
///
20-
/// As this type implements [Stream] + [Sink], it can be splitted with [`StreamExt::split`].
20+
/// As this type implements [Stream] + [Sink], it can be split with [`StreamExt::split`].
2121
pub struct ReactorBridge<R>
2222
where
2323
R: Reactor + 'static,

packages/yew/src/dom_bundle/subtree_root.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ impl SubtreeData {
401401
&'s self,
402402
event: &'s Event,
403403
) -> Option<impl 's + Iterator<Item = (&'s SubtreeData, Element)>> {
404-
// Note: the event is not necessarily indentically the same object for all installed
404+
// Note: the event is not necessarily identically the same object for all installed
405405
// handlers hence this cache can be unreliable. Hence the cached repsonsible_tree_id
406406
// might be missing. On the other hand, due to event retargeting at shadow roots,
407407
// the cache might be wrong! Keep in mind that we handle events in the capture
@@ -423,7 +423,7 @@ impl SubtreeData {
423423
// that is responsible for handling this event, and it's not this subtree.
424424
return None;
425425
}
426-
// We're tasked with finding the subtree that is reponsible with handling the event, and/or
426+
// We're tasked with finding the subtree that is responsible with handling the event, and/or
427427
// run the handling if that's `self`.
428428
let target = event_path.get(0).dyn_into::<Element>().ok()?;
429429
let should_bubble = BUBBLE_EVENTS.load(Ordering::Relaxed) && event.bubbles();

packages/yew/src/scheduler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Scheduler {
280280

281281
// Priority rendering
282282
//
283-
// This is needed for hydration susequent render to fix node refs.
283+
// This is needed for hydration subsequent render to fix node refs.
284284
if let Some(r) = self.render_priority.pop_topmost() {
285285
to_run.push(r);
286286
return;

0 commit comments

Comments
 (0)