Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in arbitrary docs #1094

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Fix typos in arbitrary docs #1094

merged 1 commit into from
Oct 3, 2023

Conversation

brson
Copy link
Contributor

@brson brson commented Sep 20, 2023

What

Just fixing a few typos.

Why

na

Known limitations

na

/// # }
/// # use soroban_sdk::{Address, Env, Vec, Bytes};
/// # use soroban_sdk::arbitrary::SorobanArbitrary;
/// fuzz_target!(|input: <Bytes as SorobanArbitrary>::Prototype| {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line previously used the wrong associated type name. This change makes the example a doc-test so that can't happen again.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is very cool way to get that type checking while still not actually having to run the fuzzer in the test 👏🏻.

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

/// # }
/// # use soroban_sdk::{Address, Env, Vec, Bytes};
/// # use soroban_sdk::arbitrary::SorobanArbitrary;
/// fuzz_target!(|input: <Bytes as SorobanArbitrary>::Prototype| {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this is very cool way to get that type checking while still not actually having to run the fuzzer in the test 👏🏻.

@leighmcculloch leighmcculloch added this pull request to the merge queue Oct 3, 2023
Merged via the queue into stellar:main with commit 612ba6c Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants