Skip to content

Fix (README.md): Add sh language to bare code fences to avoid doctest…#7

Open
edmundlod wants to merge 1 commit into
pimalaya:masterfrom
edmundlod:fix/readme-doctests
Open

Fix (README.md): Add sh language to bare code fences to avoid doctest…#7
edmundlod wants to merge 1 commit into
pimalaya:masterfrom
edmundlod:fix/readme-doctests

Conversation

@edmundlod

Copy link
Copy Markdown

Bare ``` fences in README.md are interpreted as Rust code blocks by the doctest runner (via include_str!("../README.md") in lib.rs), causing test failures.

Adding sh (and one text) as the language specifier marks them as non-Rust, so cargo test no longer tries to compile shell commands as Rust code.

… failures

Bare ``` fences in README.md are interpreted as Rust code blocks by the doctest runner (via include_str!("../README.md") in `lib.rs`), causing test failures.

Adding sh as the language specifier marks them as non-Rust, so cargo test no longer tries to compile shell commands as Rust code.
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.

1 participant