Mention Result<!, E> in addition to Result<T, !> on never docs #48096
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
While the latter is mentioned as a way of saying "this computation will never fail if it returns," the former is a way of saying "this computation will never return unless it fails."
For example, it makes a lot of sense to make
Command::exec
returnResult<!, Error>
, even though it currently just returnsError
(which can't be changed without breaking stability guarantees). Demonstrating both cases seems like a good idea.The text was updated successfully, but these errors were encountered: