From 76b8420168a2e14abf025a07ee4e32d87956d940 Mon Sep 17 00:00:00 2001 From: pierwill Date: Fri, 3 Jul 2020 12:13:01 -0700 Subject: Use italics for O notation Co-authored-by: Guillaume Gomez --- src/libstd/collections/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs index cc6663bebd3..b6488ae61b1 100644 --- a/src/libstd/collections/mod.rs +++ b/src/libstd/collections/mod.rs @@ -86,7 +86,7 @@ //! cost are suffixed with a `~`. //! //! All amortized costs are for the potential need to resize when capacity is -//! exhausted. If a resize occurs it will take O(n) time. Our collections never +//! exhausted. If a resize occurs it will take *O*(*n*) time. Our collections never //! automatically shrink, so removal operations aren't amortized. Over a //! sufficiently large series of operations, the average cost per operation will //! deterministically equal the given cost. -- cgit 1.4.1-3-g733a5