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

Empty code snippet #2632

Closed
DevHyperCoder opened this issue Mar 1, 2021 · 1 comment
Closed

Empty code snippet #2632

DevHyperCoder opened this issue Mar 1, 2021 · 1 comment

Comments

@DevHyperCoder
Copy link

DevHyperCoder commented Mar 1, 2021

This is a bug in the Test Organisation page of the book

Under the sub heading The Tests Module and #[cfg(test)], there is a placeholder code snippet for src/lib.rs but is empty. Would request to correct the empty snippet.

PS: Love this language and the book so far!

EDIT: Additional info :
it does not have a Listing number ;
It is the first listing in the page

Listing 11-12: Testing a private function is the next one

@carols10cents
Copy link
Member

Hi, this was fixed in #2610 but the fix hasn't ridden the release trains to stable yet. You can see the fix if you read the book with nightly in the URL instead of stable: https://doc.rust-lang.org/nightly/book/ch11-03-test-organization.html

Thanks!

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

No branches or pull requests

2 participants