Fix remaining comments to adhere to gofmt.

PiperOrigin-RevId: 456544446
This commit is contained in:
Ayush Ranjan
2022-06-22 10:20:08 -07:00
committed by gVisor bot
parent ed38782b23
commit dadb72341a
3 changed files with 7 additions and 7 deletions
+3 -2
View File
@@ -226,8 +226,9 @@ func GetMetadata(ctx context.Context, mm *mm.MemoryManager, buf *bytes.Buffer, t
}
// metadataData implements vfs.DynamicBytesSource for proc metadata fields like:
// - /proc/[pid]/cmdline
// - /proc/[pid]/environ
//
// - /proc/[pid]/cmdline
// - /proc/[pid]/environ
//
// +stateify savable
type metadataData struct {
+3 -3
View File
@@ -622,9 +622,9 @@ func (s *Stack) MulticastRouteLastUsedTime(protocol tcpip.NetworkProtocolNumber,
// Returns true if forwarding was already enabled on the protocol.
// Additionally, returns an error if:
//
// - The protocol is not found.
// - The protocol doesn't support multicast forwarding.
// - The multicast forwarding event dispatcher is nil.
// - The protocol is not found.
// - The protocol doesn't support multicast forwarding.
// - The multicast forwarding event dispatcher is nil.
//
// If successful, future multicast forwarding events will be sent to the
// provided event dispatcher.
+1 -2
View File
@@ -58,8 +58,7 @@ func (s *Save) Start() error {
// of messages. Both JSON and messages are prefixed by an uint64 with their
// size.
//
// Ex:
// signature <size>Config JSON [<size>message]*
// Ex: signature <size>Config JSON [<size>message]*
func (s *Save) NewClient() (server.MessageHandler, error) {
seq := s.clientCount.Add(1)
filename := filepath.Join(s.dir, fmt.Sprintf("%s%04d", s.prefix, seq))