@@ -89,7 +89,7 @@ fn str_index_overflow_fail() -> ! {
89
89
/// self`. Equivalent to `&self[0 .. len]` or `&mut self[0 .. len]`. Unlike
90
90
/// other indexing operations, this can never panic.
91
91
///
92
- /// This operation is `O (1)` .
92
+ /// This operation is *O* (1).
93
93
///
94
94
/// Prior to 1.20.0, these indexing operations were still supported by
95
95
/// direct implementation of `Index` and `IndexMut`.
@@ -130,7 +130,7 @@ unsafe impl SliceIndex<str> for ops::RangeFull {
130
130
/// Returns a slice of the given string from the byte range
131
131
/// [`begin`, `end`).
132
132
///
133
- /// This operation is `O (1)` .
133
+ /// This operation is *O* (1).
134
134
///
135
135
/// Prior to 1.20.0, these indexing operations were still supported by
136
136
/// direct implementation of `Index` and `IndexMut`.
@@ -237,7 +237,7 @@ unsafe impl SliceIndex<str> for ops::Range<usize> {
237
237
/// Returns a slice of the given string from the byte range [`0`, `end`).
238
238
/// Equivalent to `&self[0 .. end]` or `&mut self[0 .. end]`.
239
239
///
240
- /// This operation is `O (1)` .
240
+ /// This operation is *O* (1).
241
241
///
242
242
/// Prior to 1.20.0, these indexing operations were still supported by
243
243
/// direct implementation of `Index` and `IndexMut`.
@@ -308,7 +308,7 @@ unsafe impl SliceIndex<str> for ops::RangeTo<usize> {
308
308
/// `len`). Equivalent to `&self[begin .. len]` or `&mut self[begin ..
309
309
/// len]`.
310
310
///
311
- /// This operation is `O (1)` .
311
+ /// This operation is *O* (1).
312
312
///
313
313
/// Prior to 1.20.0, these indexing operations were still supported by
314
314
/// direct implementation of `Index` and `IndexMut`.
@@ -385,7 +385,7 @@ unsafe impl SliceIndex<str> for ops::RangeFrom<usize> {
385
385
/// self[begin .. end + 1]`, except if `end` has the maximum value for
386
386
/// `usize`.
387
387
///
388
- /// This operation is `O (1)` .
388
+ /// This operation is *O* (1).
389
389
///
390
390
/// # Panics
391
391
///
@@ -441,7 +441,7 @@ unsafe impl SliceIndex<str> for ops::RangeInclusive<usize> {
441
441
/// Equivalent to `&self [0 .. end + 1]`, except if `end` has the maximum
442
442
/// value for `usize`.
443
443
///
444
- /// This operation is `O (1)` .
444
+ /// This operation is *O* (1).
445
445
///
446
446
/// # Panics
447
447
///
0 commit comments