1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-17 14:47:35 +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

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