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.
I noticed a small error in the documentation.
to_string
is not necessary when in the context of aprintln!
call, because bothto_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.