]> git.lizzy.rs Git - rust.git/commit
Add implicit call to from_str via parse in documentation
authorSylvainDe <sylvain.desodt+github@gmail.com>
Thu, 19 May 2022 19:58:39 +0000 (21:58 +0200)
committerSylvainDe <sylvain.desodt+github@gmail.com>
Thu, 19 May 2022 20:01:43 +0000 (22:01 +0200)
commit4c1daba940837de49c1a45ce93356c87de27d433
tree1b380ac04d46f988c482e1c48632f84290baa718
parentc0672870491e84362f76ddecd50fa229f9b06dff
Add implicit call to from_str via parse in documentation

The documentation mentions "FromStr’s from_str method is often used implicitly,
through str’s parse method. See parse’s documentation for examples.".

It may be nicer to show that in the code example as well.
library/core/src/str/traits.rs