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

Remove unnecessary to_string within println#296

Open
Phytolizer wants to merge 1 commit intorust-lang-deprecated:masterfrom
Phytolizer:master
Open

Remove unnecessary to_string within println#296
Phytolizer wants to merge 1 commit intorust-lang-deprecated:masterfrom
Phytolizer:master

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.

1 participant