Skip to content

Commit

Permalink
Remove redundant State bound from docs example with IsComplte (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
Veetaha authored Nov 10, 2024
1 parent 79d6ed3 commit edec8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/guide/typestate-api/custom-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ Thus, instead of writing `S::{Member}: IsSet` you can write a single bound `S: I
```rust ignore
fn example<S>(/**/)
where
S: State,
S: State, // [!code --]
S::X1: IsSet, // [!code --]
S::X2: IsSet, // [!code --]
S: IsComplete // [!code ++]
Expand Down

0 comments on commit edec8d0

Please sign in to comment.