diff options
| author | mo8it <mo8it@proton.me> | 2024-05-13 21:40:40 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-05-13 21:40:40 +0200 |
| commit | d48e86b1540dcf649412c088cc50161f3e356e26 (patch) | |
| tree | 4c2e4c833ccb8797795e7a9e2858f6b2d8f140f9 /src/cargo_toml.rs | |
| parent | 39a19f945008ef59af107fe54d9dc62943469c8b (diff) | |
Use public comments for public items
Diffstat (limited to 'src/cargo_toml.rs')
| -rw-r--r-- | src/cargo_toml.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cargo_toml.rs b/src/cargo_toml.rs index 106e6a7..b7951f6 100644 --- a/src/cargo_toml.rs +++ b/src/cargo_toml.rs @@ -2,10 +2,10 @@ use anyhow::{Context, Result}; use crate::info_file::ExerciseInfo; -// Return the start and end index of the content of the list `bin = […]`. -// bin = [xxxxxxxxxxxxxxxxx] -// |start_ind | -// |end_ind +/// Return the start and end index of the content of the list `bin = […]`. +/// bin = [xxxxxxxxxxxxxxxxx] +/// |start_ind | +/// |end_ind pub fn bins_start_end_ind(cargo_toml: &str) -> Result<(usize, usize)> { let start_ind = cargo_toml .find("bin = [") @@ -20,8 +20,8 @@ pub fn bins_start_end_ind(cargo_toml: &str) -> Result<(usize, usize)> { Ok((start_ind, end_ind)) } -// Generate and append the content of the `bin` list in `Cargo.toml`. -// The `exercise_path_prefix` is the prefix of the `path` field of every list entry. +/// Generate and append the content of the `bin` list in `Cargo.toml`. +/// The `exercise_path_prefix` is the prefix of the `path` field of every list entry. pub fn append_bins( buf: &mut Vec<u8>, exercise_infos: &[ExerciseInfo], @@ -43,7 +43,7 @@ pub fn append_bins( } } -// Update the `bin` list and leave everything else unchanged. +/// Update the `bin` list and leave everything else unchanged. pub fn updated_cargo_toml( exercise_infos: &[ExerciseInfo], current_cargo_toml: &str, |
