]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Auto merge of #74010 - pierwill:pierwill-o-notation, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Mon, 20 Jul 2020 10:19:58 +0000 (10:19 +0000)
committerbors <bors@rust-lang.org>
Mon, 20 Jul 2020 10:19:58 +0000 (10:19 +0000)
commit71384101ea3b030b80f7def80a37f67e148518b0
treeb2cdb190bf396f3b8fc7ffb65e6b0145d27bfd9d
parent05630b06fdf76c25c6ccf2e9ac3567592eae6c67
parent76b8420168a2e14abf025a07ee4e32d87956d940
Auto merge of #74010 - pierwill:pierwill-o-notation, r=GuillaumeGomez

Use italics for O notation

In documentation, I think it makes sense to italicize O notation (*O(n)*) as opposed to using back-ticks (`O(n)`). Visually, back-ticks focus the reader on the literal characters being used, making them ideal for representing code. Using italics, as far I can tell, more closely follows typographic conventions in mathematics and computer science.

Just a suggestion, of course! ðŸ˜‡
src/liballoc/collections/vec_deque.rs
src/liballoc/string.rs
src/libcore/slice/mod.rs
src/librustc_index/bit_set.rs