1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-01 00:45:17 +02:00

Document info_file

This commit is contained in:
mo8it
2024-05-13 22:02:45 +02:00
parent d48e86b154
commit a67e63cce0
2 changed files with 35 additions and 11 deletions

View File

@ -17,10 +17,9 @@ use crate::{
/// The initial capacity of the output buffer.
pub const OUTPUT_CAPACITY: usize = 1 << 14;
/// See `info_file::ExerciseInfo`
pub struct Exercise {
/// Directory name.
pub dir: Option<&'static str>,
/// Exercise's unique name.
pub name: &'static str,
/// Path of the exercise file starting with the `exercises/` directory.
pub path: &'static str,