Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindaugas Bernotas committed Aug 5, 2021
1 parent 11a6aab commit aa82736
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
)

// IsContainer reports whetver machine appears to be a container.
// IsContainer reports whetver application is running in a container.
func IsContainer() bool {
const root = ""
return openVZ(root) || lxc(root) || docker(root) || podman(root) || wsl(root)
Expand Down
6 changes: 3 additions & 3 deletions vm.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package virt provides ability to check whetver running machine is a virtual
// machine or a container.
// Package virt is a library that helps detect if application is running in a
// virtual machine, container or bare-metal.
package virt

import (
Expand All @@ -11,7 +11,7 @@ import (
"github.com/klauspost/cpuid/v2"
)

// IsVM reports whetver machine appears to be a virtual machine.
// IsVM reports whetver application is running in a virtual machine.
// Uses cpuid as primary source, filesystem as fallback.
func IsVM() bool {
const root = ""
Expand Down

0 comments on commit aa82736

Please sign in to comment.