aboutsummaryrefslogtreecommitdiff
path: root/src/data/pubsub.rs
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2024-05-05 16:41:38 +0630
committerGitHub <noreply@github.com>2024-05-05 12:11:38 +0200
commit7375a691e232bb59033980dc09c7179bc16e377f (patch)
tree1713a55a9c8a4199292c4668c950404ba1e033c1 /src/data/pubsub.rs
parent1b05b2ebfac63034d3dd14a7a5b9b87c59377529 (diff)
downloadrapier-7375a691e232bb59033980dc09c7179bc16e377f.tar.gz
rapier-7375a691e232bb59033980dc09c7179bc16e377f.tar.bz2
rapier-7375a691e232bb59033980dc09c7179bc16e377f.zip
Fix some typos. (#620)
Diffstat (limited to 'src/data/pubsub.rs')
-rw-r--r--src/data/pubsub.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/pubsub.rs b/src/data/pubsub.rs
index 619521e..d595e03 100644
--- a/src/data/pubsub.rs
+++ b/src/data/pubsub.rs
@@ -103,7 +103,7 @@ impl<T> PubSub<T> {
subscription
}
- /// Read the i-th message not yet read by the given subsciber.
+ /// Read the i-th message not yet read by the given subscriber.
pub fn read_ith(&self, sub: &Subscription<T>, i: usize) -> Option<&T> {
let cursor = &self.cursors[sub.id as usize];
self.messages.get(cursor.next(self.deleted_messages) + i)