chore: fix some minor issues in the comments (#3872)

Signed-off-by: rustfix <771054535@qq.com>
This commit is contained in:
rustfix 2025-07-10 14:09:30 +08:00 committed by GitHub
parent b4d083ef8f
commit 8945ab7856
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ use crate::Codec;
/// A connection manager for components interaction with oneshot workers.
///
/// As this type implements [Stream] + [Sink], it can be splitted with [`StreamExt::split`].
/// As this type implements [Stream] + [Sink], it can be split with [`StreamExt::split`].
pub struct ReactorBridge<R>
where
R: Reactor + 'static,

View File

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

View File

@ -280,7 +280,7 @@ impl Scheduler {
// Priority rendering
//
// This is needed for hydration susequent render to fix node refs.
// This is needed for hydration subsequent render to fix node refs.
if let Some(r) = self.render_priority.pop_topmost() {
to_run.push(r);
return;