summaryrefslogtreecommitdiff
path: root/bufferevent_ratelim.c
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2022-06-13 04:58:50 +0800
committerGitHub <noreply@github.com>2022-06-12 23:58:50 +0300
commit1c204d55640170b77ed2f7e8cc07f9417e1844cc (patch)
treefe77c6c3787bea10822a1461edf5308741b08fe0 /bufferevent_ratelim.c
parent41239c9dac70ed90187fb287f214e1b106f52c83 (diff)
downloadlibevent-1c204d55640170b77ed2f7e8cc07f9417e1844cc.tar.gz
Fix some typos (#1284)
Signed-off-by: cuishuang <imcusg@gmail.com>
Diffstat (limited to 'bufferevent_ratelim.c')
-rw-r--r--bufferevent_ratelim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bufferevent_ratelim.c b/bufferevent_ratelim.c
index 3b7ae51b..1fed9d15 100644
--- a/bufferevent_ratelim.c
+++ b/bufferevent_ratelim.c
@@ -76,7 +76,7 @@ ev_token_bucket_update_(struct ev_token_bucket *bucket,
ev_uint32_t current_tick)
{
/* It's okay if the tick number overflows, since we'll just
- * wrap around when we do the unsigned substraction. */
+ * wrap around when we do the unsigned subtraction. */
unsigned n_ticks = current_tick - bucket->last_updated;
/* Make sure some ticks actually happened, and that time didn't