Commit 95d9c8d
authored
Rollup merge of rust-lang#144230 - RalfJung:option-as-slice-comment-fix, r=scottmcm
Option::as_slice: fix comment
The implementation got changed in rust-lang#117525 without updating the comment. Now the comment makes no sense any more since there is no intrinsic that returns a pointer in this function any more.
(It is also very strange to say "in the new version" in a comment -- what is that supposed to tell someone reading the code 2 years later? That wording was introduced even earlier, in rust-lang#109179.)
Cc `@GKFX` `@petrochenkov` `@llogiq` `@scottmcm`1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
845 | | - | |
| 845 | + | |
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
| |||
0 commit comments