Skip to content

Commit 3782207

Browse files
authored
Unitalicize "log" in big O notation (#17)
1 parent c67dd34 commit 3782207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Guides/Partition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ extension Collection {
7474
### Complexity
7575

7676
The existing partition is an O(_n_) operations, where _n_ is the length of the
77-
range to be partitioned, while the stable partition is O(_n log n_). Both
77+
range to be partitioned, while the stable partition is O(_n_ log _n_). Both
7878
partitions have algorithms with improved performance for bidirectional
7979
collections, so it would be ideal for those to be customization points were they
8080
to eventually land in the standard library.
8181

8282
`partitioningIndex(where:)` is a slight generalization of a binary search, and
83-
is an O(_log n_) operation for random-access collections; O(_n_) otherwise.
83+
is an O(log _n_) operation for random-access collections; O(_n_) otherwise.
8484

8585
### Comparison with other languages
8686

0 commit comments

Comments
 (0)