rust-cli / team

CLI working group
https://rust-cli.github.io/book
MIT License
294 stars 34 forks source link

Link to Error or Result? #158

Closed oylenshpeegul closed 2 years ago

oylenshpeegul commented 4 years ago

On the errors page, the link named std::io::Error actually goes to std::io::Result. Was this intentional? Though the latter does do more explaining and contains a link to the former, it's perhaps a bit confusing.

killercup commented 4 years ago

IIRC, it was because the mentioned read_to_string function's return type is std::io::Result which "hides" that it contains std::io::Error. I wouldn't mind chaning it.