File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,8 @@ impl Default for Spec {
183
183
impl Spec {
184
184
/// Load a new `Spec` from the provided JSON file `path`.
185
185
/// # Errors
186
- /// This function will return an [OciSpecError::Io](crate::OciSpecError::Io)
187
- /// if the spec does not exist or an
188
- /// [OciSpecError::SerDe](crate::OciSpecError::SerDe) if it is invalid.
186
+ /// This function will return an [OciSpecError::Io] if the spec does not exist or an
187
+ /// [OciSpecError::SerDe] if it is invalid.
189
188
/// # Example
190
189
/// ``` no_run
191
190
/// use oci_spec::runtime::Spec;
@@ -202,10 +201,8 @@ impl Spec {
202
201
203
202
/// Save a `Spec` to the provided JSON file `path`.
204
203
/// # Errors
205
- /// This function will return an [OciSpecError::Io](crate::OciSpecError::Io)
206
- /// if a file cannot be created at the provided path or an
207
- /// [OciSpecError::SerDe](crate::OciSpecError::SerDe) if the spec cannot be
208
- /// serialized.
204
+ /// This function will return an [OciSpecError::Io] if a file cannot be created at the provided
205
+ /// path or an [OciSpecError::SerDe] if the spec cannot be serialized.
209
206
/// # Example
210
207
/// ``` no_run
211
208
/// use oci_spec::runtime::Spec;
You can’t perform that action at this time.
0 commit comments