Skip to content

Commit c6bf82c

Browse files
committed
pkg/cdi: fix incorrect WriteSpec docstring.
Signed-off-by: Krisztian Litkey <[email protected]>
1 parent 5609688 commit c6bf82c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/cdi/cache.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,10 @@ func (c *Cache) InjectDevices(ociSpec *oci.Spec, devices ...string) ([]string, e
255255
return nil, nil
256256
}
257257

258-
// WriteSpec writes a Spec file with the given content. Priority is used
259-
// as an index into the list of Spec directories to pick a directory for
260-
// the file, adjusting for any under- or overflows. If name has a "json"
261-
// or "yaml" extension it choses the encoding. Otherwise JSON encoding
262-
// is used with a "json" extension.
258+
// WriteSpec writes a Spec file with the given content into the highest
259+
// priority Spec directory. If name has a "json" or "yaml" extension it
260+
// choses the encoding. Otherwise JSON encoding is used with a "json"
261+
// extension appended.
263262
func (c *Cache) WriteSpec(raw *cdi.Spec, name string) error {
264263
var (
265264
specDir string

0 commit comments

Comments
 (0)