1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-24 09:46:45 +02:00

Add a bit about 'use' (#580)

* Add a bit about 'use'

* fix paths
This commit is contained in:
Dustin J. Mitchell
2023-04-24 14:51:23 -04:00
committed by GitHub
parent 6744822454
commit 69a62ba227
2 changed files with 16 additions and 4 deletions

View File

@ -28,11 +28,15 @@ These document the item that contains them -- in this case, a module.
//! This module implements the garden, including a highly performant germination
//! implementation.
/// Sow the given seed packets.
fn sow(seeds: Vec<SeedPacket>) { todo!() }
// Re-export types from this module.
pub use seeds::SeedPacket;
pub use garden::Garden;
// Harvest the produce in the garden that is ready.
fn harvest(garden: &mut Garden) { todo!() }
/// Sow the given seed packets.
pub fn sow(seeds: Vec<SeedPacket>) { todo!() }
/// Harvest the produce in the garden that is ready.
pub fn harvest(garden: &mut Garden) { todo!() }
```
<details>