Bläddra i källkod

Merge pull request #2627 from mateusbraga/patch-2

osutil: fix InterruptHandler comment position
Xiang Li 10 år sedan
förälder
incheckning
27083093d3
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      pkg/osutil/interrupt_unix.go

+ 2 - 3
pkg/osutil/interrupt_unix.go

@@ -14,9 +14,6 @@
 
 // +build !windows,!plan9
 
-// InterruptHandler is a function that is called on receiving a
-// SIGTERM or SIGINT signal.
-
 package osutil
 
 import (
@@ -27,6 +24,8 @@ import (
 	"syscall"
 )
 
+// InterruptHandler is a function that is called on receiving a
+// SIGTERM or SIGINT signal.
 type InterruptHandler func()
 
 var (