Skip to content

Commit 5a06c6f

Browse files
authored
Merge pull request #2644 from dector/docs/2636/incus-instance-godocs
incus/instance: Add missing godocs
2 parents cf749f5 + c5dbb01 commit 5a06c6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/instance/snapshot.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ import (
44
"strings"
55
)
66

7+
// SnapshotDelimiter is used to separate instance name from snapshot name.
78
const SnapshotDelimiter = "/"
89

10+
// IsSnapshot checks if provided name is a snapshot name.
911
func IsSnapshot(name string) bool {
1012
return strings.Contains(name, SnapshotDelimiter)
1113
}

0 commit comments

Comments
 (0)