Skip to content

Commit

Permalink
Ignore example doc comment for create_files to fix cargo-test
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto committed Aug 15, 2023
1 parent 836cacf commit f1d7c92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,9 @@ pub type Files = Vec<(PathBuf, String)>;
/// Create files from the given (path, content) tuple array.
///
/// # Example
/// ```
/// crate_files(&[("programs/my_program/src/lib.rs".into(), "// Content".into())])?;
///
/// ```ignore
/// crate_files(vec![("programs/my_program/src/lib.rs".into(), "// Content".into())])?;
/// ```
pub fn create_files(files: &Files) -> Result<()> {
for (path, content) in files {
Expand Down

0 comments on commit f1d7c92

Please sign in to comment.