1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-15 22:37:28 +02:00

Fix broken module example (#983)

The module is external, so it should not have curly braces.
This commit is contained in:
Martin Geisler 2023-07-17 16:54:47 +02:00 committed by GitHub
parent ab5988180b
commit 79ae681f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ pub fn harvest(garden: &mut Garden) { todo!() }
```rust,ignore
#[path = "some/path.rs"]
mod some_module { }
mod some_module;
```
This is useful, for example, if you would like to place tests for a module in a file named