Commit 18398ad
authored
Rollup merge of #111973 - Sp00ph:update_current_impl, r=Amanieu
Update current implementation comments for `select_nth_unstable`
This more accurately reflects the actual implementation, as it hasn't been a simple quickselect since #106997. While it does say that the current implementation always runs in O(n), I don't think it should require an FCP as it doesn't guarantee linearity in general and only points out that the current implementation is in fact linear.
r? `@Amanieu`1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3005 | 3005 | | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | | - | |
3009 | | - | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
3010 | 3011 | | |
3011 | 3012 | | |
3012 | 3013 | | |
| |||
3056 | 3057 | | |
3057 | 3058 | | |
3058 | 3059 | | |
3059 | | - | |
3060 | | - | |
| 3060 | + | |
| 3061 | + | |
| 3062 | + | |
3061 | 3063 | | |
3062 | 3064 | | |
3063 | 3065 | | |
| |||
0 commit comments