aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-lru
diff options
context:
space:
mode:
authorYuchen Wu <[email protected]>2024-03-01 11:51:14 -0800
committerYuchen Wu <[email protected]>2024-03-01 13:47:27 -0800
commit8160ad169878ea6b4884b977f2a96541083036c4 (patch)
tree3e0100f38369e96a7e27456230e1e841b021cd3f /pingora-lru
parente8113822247b5f9bb4eab34cb10121b873e73fd1 (diff)
downloadpingora-8160ad169878ea6b4884b977f2a96541083036c4.tar.gz
pingora-8160ad169878ea6b4884b977f2a96541083036c4.zip
Fix typos and grammar issues
Co-authored-by: =?~~~?q?Ren=C3=A9=20Kla=C4=8Dan?= <[email protected]> Co-authored-by: 12932 <[email protected]> Co-authored-by: Alessandro <[email protected]> Co-authored-by: InImpasse <[email protected]> Co-authored-by: Paul James Cleary <[email protected]> Co-authored-by: Yang Hau <[email protected]> Co-authored-by: Morpheus <[email protected]> Co-authored-by: mobeicanyue <[email protected]> Co-authored-by: Twacqwq <[email protected]> Co-authored-by: Bobby <[email protected]> Co-authored-by: Dup4 <[email protected]> Co-authored-by: Josh Soref <[email protected]> Co-authored-by: Sheldon <[email protected]> Co-authored-by: houseme <[email protected]> Co-authored-by: ZhangIvan1 <[email protected]> Co-authored-by: GrahamQuan <[email protected]> Co-authored-by: =?~~~?q?Cristian=20Paul=20Pe=C3=B1aranda=20Rojas?= <[email protected]> Co-authored-by: Nathan Sit <[email protected]> Co-authored-by: David Lee <[email protected]> Co-authored-by: Mengliang Su <[email protected]> Co-authored-by: =?~~~?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= <[email protected]> Co-authored-by: Allen Huang <[email protected]> Co-authored-by: Opacity <[email protected]> Co-authored-by: cris <[email protected]> Co-authored-by: Killian Ye <[email protected]> Co-authored-by: Jiwei-dev <[email protected]> Co-authored-by: Jinfeng Wang <[email protected]> Co-authored-by: Ikko Eltociear Ashimine <[email protected]>
Diffstat (limited to 'pingora-lru')
-rw-r--r--pingora-lru/src/linked_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pingora-lru/src/linked_list.rs b/pingora-lru/src/linked_list.rs
index 7664aaf..7a29010 100644
--- a/pingora-lru/src/linked_list.rs
+++ b/pingora-lru/src/linked_list.rs
@@ -74,7 +74,7 @@ impl Nodes {
};
// Constrain the growth of vec: vec always double its capacity when it needs to grow
// It could waste too much memory when it is already very large.
- // Here we limit the memory waste to 10% onces it grows beyond the cap.
+ // Here we limit the memory waste to 10% once it grows beyond the cap.
// The amortized growth cost is O(n) beyond the max of the initial reserved capacity and
// the cap. But this list is for limited sized LRU and we recycle released node, so
// hopefully insertions are rare beyond certain sizes