Skip to content

Commit

Permalink
doc: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Nov 18, 2024
1 parent 7a4e4dc commit a11a41a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,8 @@ StackTrace:
number of frames to include during display/logging.

## Anyhow Result Type vs Rust Result Type
The `Result` type for this package is just a typedef of the `Result` type in the [rust] package -
```dart
import 'package:rust/rust.dart' as rust;
typedef Result<S> = rust.Result<S, Error>
```
Thus inheriting all of its capabilities and the two types can be used together -
The `Result` type for this package is just a typedef of the `Result` type in the [rust] package.
Thus inheriting all capabilities and the two types/packages can be used seamlessly together -
```dart
import 'package:anyhow/anyhow.dart' as anyhow;
import 'package:rust/rust.dart';
Expand Down

0 comments on commit a11a41a

Please sign in to comment.