Skip to content

Commit

Permalink
Update paragraph in src/fn/diverging.md
Browse files Browse the repository at this point in the history
Fixes grammatical inconsistencies, and makes the paragraph much easier to read as it flows better
  • Loading branch information
ruanswanepoel committed May 23, 2024
1 parent 2048289 commit a813cde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fn/diverging.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ fn main() {
}
```

Although this might seem like an abstract concept, it is in fact very useful and
often handy. The main advantage of this type is that it can be cast to any other
one and therefore used at places where an exact type is required, for instance
in `match` branches. This allows us to write code like this:
Although this might seem like an abstract concept, it is actually very useful and
often handy. The main advantage of this type is that it can be cast to any other
type, making it versatile in situations where an exact type is required, such as
in match branches. This flexibility allows us to write code like this:

```rust
fn main() {
Expand Down

0 comments on commit a813cde

Please sign in to comment.