Skip to content

Commit

Permalink
Fix typos in arbitrary docs (#1094)
Browse files Browse the repository at this point in the history
### What

Just fixing a few typos.

### Why

na

### Known limitations

na
  • Loading branch information
brson authored Oct 3, 2023
1 parent 6815e2a commit 612ba6c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions soroban-sdk/src/arbitrary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,16 @@ mod api {
/// Types that implement `SorabanArbitrary` have an associated "prototype"
/// type that implements [`Arbitrary`].
///
/// This exists partly that the prototype can be named like
/// This exists partly so that the prototype can be named like
///
/// ```ignore
/// fuzz_target!(|input: <Bytes as SorobanArbitrary>::Arbitrary| {
/// ...
/// ```
/// # macro_rules! fuzz_target {
/// # (|$data:ident: $dty: ty| $body:block) => { };
/// # }
/// # use soroban_sdk::{Address, Env, Vec, Bytes};
/// # use soroban_sdk::arbitrary::SorobanArbitrary;
/// fuzz_target!(|input: <Bytes as SorobanArbitrary>::Prototype| {
/// // ...
/// });
/// ```
// This also makes derivation of `SorobanArbitrary` for custom types easier
Expand Down

0 comments on commit 612ba6c

Please sign in to comment.