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

Add checks for README examples and fix typo #407

Merged
merged 1 commit into from Jul 8, 2021

Conversation

GuillaumeGomez
Copy link
Contributor

You had a small typo in one of your examples, so I fixed it and added a check for it. I added the doc-comment dependency as a dev-dependency.

@mgeisler mgeisler enabled auto-merge July 8, 2021 10:19
@mgeisler
Copy link
Owner

mgeisler commented Jul 8, 2021

Hi @GuillaumeGomez, this is super cool! Thanks a lot for the fix and for showing me this technique.

@mgeisler mgeisler merged commit 96c45a9 into mgeisler:master Jul 8, 2021
mgeisler added a commit that referenced this pull request Jul 8, 2021
We’ve gotten doctests for the README in #407. This PR changes the
output on test failures from

    test src/lib.rs - (line 267) ... FAILED

to

    test src/lib.rs - readme_doctest (line 268) ... FAILED

which is slightly more informative. The line numbers are still off
since I imagine they’re a combination of the line number in ‘lib.rs’
and ‘README.md’, but at least we now have an indication of where the
error comes from. Finding the broken example should be easy then.
@GuillaumeGomez GuillaumeGomez deleted the doc-comment branch July 8, 2021 10:52
@github-actions github-actions bot mentioned this pull request Feb 27, 2022
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.

None yet

2 participants