mirror of
https://github.com/haraldh/chainerror.git
synced 2025-05-29 05:08:06 +02:00
docs: use new names
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
55c16d7867
commit
82257c881a
27 changed files with 74 additions and 76 deletions
|
@ -1,6 +1,6 @@
|
|||
# Writing a library
|
||||
|
||||
I would advise to only expose an `mycrate::ErrorKind` and type alias `mycrate::Error` to `ChainError<mycrate::ErrorKind>`
|
||||
I would advise to only expose an `mycrate::ErrorKind` and type alias `mycrate::Error` to `chainerror::Error<mycrate::ErrorKind>`
|
||||
so you can tell your library users to use the `.kind()` method as `std::io::Error` does.
|
||||
|
||||
If you later decide to make your own `Error` implementation, your library users don't
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue