Skip to content

Commit

Permalink
fix(docs): Change escaping based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVoogsgerd committed Oct 14, 2024
1 parent 962da6d commit 9503cf6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion brane-cli/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ impl Error for UtilError {}
/// Defines errors that relate to finding our directories.
#[derive(Debug)]
pub enum DirError {
/// Failed to find a user directory. The `what` hints at the kind of user directory (fill in "`<WHAT>` directory", e.g., "config", "data", ...)
/// Failed to find a user directory. The `what` hints at the kind of user directory (fill in "\<what\> directory", e.g., "config", "data", ...)
UserDirError { what: &'static str },
/// Failed to read the softlink.
SoftlinkReadError { path: PathBuf, err: std::io::Error },
Expand Down
14 changes: 7 additions & 7 deletions brane-cli/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ use crate::vm::OfflineVm;
/// - `dindex`: The DataIndex to resolve data instantiations with.
/// - `user`: If given, then this is some tentative identifier of the user receiving the final workflow result.
/// - `options`: The ParseOptions to use.
/// - `what`: A string describing what we're parsing (e.g., a filename, `<stdin>`, ...).
/// - `what`: A string describing what we're parsing (e.g., a filename, stdin, ...).
/// - `snippet`: The actual snippet to parse.
///
/// # Returns
Expand Down Expand Up @@ -686,7 +686,7 @@ pub async fn initialize_instance_vm(
///
/// # Arguments
/// - `state`: The DummyVmState that we use to run the dummy VM.
/// - `what`: The thing we're running. Either a filename, or something like `<stdin>`.
/// - `what`: The thing we're running. Either a filename, or something like stdin.
/// - `snippet`: The snippet (as raw text) to compile and run.
///
/// # Returns
Expand Down Expand Up @@ -721,7 +721,7 @@ pub async fn run_dummy_vm(state: &mut DummyVmState, what: impl AsRef<str>, snipp
///
/// # Arguments
/// - `state`: The OfflineVmState that we use to run the local VM.
/// - `what`: The thing we're running. Either a filename, or something like `<stdin>`.
/// - `what`: The thing we're running. Either a filename, or something like stdin.
/// - `snippet`: The snippet (as raw text) to compile and run.
///
/// # Returns
Expand Down Expand Up @@ -757,7 +757,7 @@ pub async fn run_offline_vm(state: &mut OfflineVmState, what: impl AsRef<str>, s
/// # Arguments
/// - `drv_endpoint`: The `brane-drv` endpoint that we will connect to to run stuff (used for debugging only).
/// - `state`: The InstanceVmState that we use to connect to the driver.
/// - `what`: The thing we're running. Either a filename, or something like `<stdin>`.
/// - `what`: The thing we're running. Either a filename, or something like stdin.
/// - `snippet`: The snippet (as raw text) to compile and run.
/// - `profile`: If given, prints the profile timings to stdout if reported by the remote.
///
Expand Down Expand Up @@ -1005,7 +1005,7 @@ pub async fn handle(
///
/// # Arguments
/// - `options`: The ParseOptions that specify how to parse the incoming source.
/// - `what`: A description of the source we're reading (e.g., the filename or `<stdin>`)
/// - `what`: A description of the source we're reading (e.g., the filename or stdin)
/// - `source`: The source code to read.
///
/// # Returns
Expand All @@ -1030,7 +1030,7 @@ async fn dummy_run(options: ParserOptions, what: impl AsRef<str>, source: impl A
/// # Arguments
/// - `parse_opts`: The ParseOptions that specify how to parse the incoming source.
/// - `docker_opts`: The options with which we connect to the local Docker daemon.
/// - `what`: A description of the source we're reading (e.g., the filename or `<stdin>`)
/// - `what`: A description of the source we're reading (e.g., the filename or stdin)
/// - `source`: The source code to read.
/// - `keep_containers`: Whether to keep containers after execution or not.
///
Expand Down Expand Up @@ -1063,7 +1063,7 @@ async fn local_run(
/// - `info`: Information about the remote instance, including as who we're logged-in.
/// - `proxy_addr`: The address to proxy any data transfers through if they occur.
/// - `options`: The ParseOptions that specify how to parse the incoming source.
/// - `what`: A description of the source we're reading (e.g., the filename or `<stdin>`)
/// - `what`: A description of the source we're reading (e.g., the filename or stdin)
/// - `source`: The source code to read.
/// - `profile`: If given, prints the profile timings to stdout if reported by the remote.
///
Expand Down
2 changes: 1 addition & 1 deletion brane-ctl/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ pub enum PackagesError {
NodeConfigLoadError { err: brane_cfg::info::YamlError },
/// The given node type is not supported for this operation.
///
/// The `what` should fill in the `<WHAT>` in: "Cannot `<WHAT>` on a ... node"
/// The `what` should fill in the \<WHAT\> in: "Cannot \<WHAT\> on a ... node"
UnsupportedNode { what: &'static str, kind: NodeKind },
/// The given file is not a file.
FileNotAFile { path: PathBuf },
Expand Down

0 comments on commit 9503cf6

Please sign in to comment.