Logo
Explore Help
Register Sign In
Mirrors/rust
1
0
Fork 0
You've already forked rust
mirror of https://github.com/rust-lang/rust.git synced 2026-05-29 20:46:07 +03:00
Code Issues Packages Projects Releases Wiki Activity
Files
0be9d39336d8ec775d7effe12b91bf2e51bb7a85
rust/library/core
T
History
Manos Pitsidianakis 0be9d39336 core/slice: remove doc comment about scoped borrow
There's no need to scope the borrow in the doc example due to NLL.

Playground link where changed code compiles
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20mut%20v%20%3D%20%5B1%2C%200%2C%203%2C%200%2C%205%2C%206%5D%3B%0A%0A%20%20%20%20let%20(left%2C%20right)%20%3D%20v.split_at_mut(2)%3B%0A%20%20%20%20assert_eq!(left%2C%20%5B1%2C%200%5D)%3B%0A%20%20%20%20assert_eq!(right%2C%20%5B3%2C%200%2C%205%2C%206%5D)%3B%0A%20%20%20%20left%5B1%5D%20%3D%202%3B%0A%20%20%20%20right%5B1%5D%20%3D%204%3B%0A%0A%20%20%20%20assert_eq!(v%2C%20%5B1%2C%202%2C%203%2C%204%2C%205%2C%206%5D)%3B%0A%7D%0A
2021-01-11 18:55:35 +02:00
..
benches
Remove redundant 'static from library crates
2020-10-18 17:25:51 +02:00
src
core/slice: remove doc comment about scoped borrow
2021-01-11 18:55:35 +02:00
tests
Auto merge of #79895 - Kerollmops:slice-group-by, r=m-ou-se
2020-12-31 12:00:43 +00:00
Cargo.toml
mv std libs to library/
2020-07-27 19:51:13 -05:00
Powered by Gitea Version: 1.26.2 Page: 378ms Template: 3ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API