From 022fda79c04c6a343158bb920e1d3c1b0cc367cb Mon Sep 17 00:00:00 2001 From: rustco Date: Thu, 20 Jun 2024 15:14:46 +0800 Subject: [PATCH] chore: fix comment Signed-off-by: rustco --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 69824233..fc31f5cb 100644 --- a/src/state.rs +++ b/src/state.rs @@ -554,7 +554,7 @@ impl AtomicPosition { // We now calculate `new`, the number of ms, in ns, since we last returned `true`, // and `remainder`, which represents a number of ns less than 1ms which we cannot // convert into capacity now, so we're saving it for later. We do this by - // substracting this from `elapsed` before storing it into `self.prev`. + // subtracting this from `elapsed` before storing it into `self.prev`. let (new, remainder) = ((diff / INTERVAL), (diff % INTERVAL)); // We add `new` to `capacity`, subtract one for returning `true` from here, // then make sure it does not exceed a maximum of `MAX_BURST`.