Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Remove unnecessary to_string within println #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Phytolizer
Copy link

I noticed a small error in the documentation. to_string is not necessary when in the context of a println! call, because both to_string and the {} format specifier use the Display trait. In other words, to_string is implied. It's not really a big deal, but I do think it is a mistake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant