* Talk about std::take instead of std::replace
* Mention mem::replace in mem::take idiom
* Fix example code so it can compile and execute
* Clarify the need for Default in disadvantages
* Update idioms/mem-take.md
* Add note tag to section on mem::replace
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
* Follow on from previous paragraph in mem::take
* Change title to include mem::take
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Describe some of the reasons it is considered idiomatic to use `&str` over `&String` in most cases.
Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com>
Co-authored-by: Ivan Tham <pickfire@riseup.net>