Skip to content

Commit

Permalink
Merge pull request #154 from saschagrunert/docs
Browse files Browse the repository at this point in the history
Fix docs CI
  • Loading branch information
utam0k authored Oct 25, 2023
2 parents 3d50978 + aa8f403 commit 56dd1b2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ impl Default for Spec {
impl Spec {
/// Load a new `Spec` from the provided JSON file `path`.
/// # Errors
/// This function will return an [OciSpecError::Io](crate::OciSpecError::Io)
/// if the spec does not exist or an
/// [OciSpecError::SerDe](crate::OciSpecError::SerDe) if it is invalid.
/// This function will return an [OciSpecError::Io] if the spec does not exist or an
/// [OciSpecError::SerDe] if it is invalid.
/// # Example
/// ``` no_run
/// use oci_spec::runtime::Spec;
Expand All @@ -202,10 +201,8 @@ impl Spec {

/// Save a `Spec` to the provided JSON file `path`.
/// # Errors
/// This function will return an [OciSpecError::Io](crate::OciSpecError::Io)
/// if a file cannot be created at the provided path or an
/// [OciSpecError::SerDe](crate::OciSpecError::SerDe) if the spec cannot be
/// serialized.
/// This function will return an [OciSpecError::Io] if a file cannot be created at the provided
/// path or an [OciSpecError::SerDe] if the spec cannot be serialized.
/// # Example
/// ``` no_run
/// use oci_spec::runtime::Spec;
Expand Down

0 comments on commit 56dd1b2

Please sign in to comment.