From dcb61a1e38ffa54290ee44a714f7b74fa451a9e8 Mon Sep 17 00:00:00 2001 From: allencloud Date: Fri, 11 Mar 2016 23:02:17 +0800 Subject: [PATCH] fix typos Signed-off-by: allencloud --- system/meminfo_linux.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/meminfo_linux.go b/system/meminfo_linux.go index 66731a9..385f1d5 100644 --- a/system/meminfo_linux.go +++ b/system/meminfo_linux.go @@ -11,7 +11,7 @@ import ( ) // ReadMemInfo retrieves memory statistics of the host system and returns a -// MemInfo type. +// MemInfo type. func ReadMemInfo() (*MemInfo, error) { file, err := os.Open("/proc/meminfo") if err != nil { @@ -22,8 +22,7 @@ func ReadMemInfo() (*MemInfo, error) { } // parseMemInfo parses the /proc/meminfo file into -// a MemInfo object given a io.Reader to the file. -// +// a MemInfo object given an io.Reader to the file. // Throws error if there are problems reading from the file func parseMemInfo(reader io.Reader) (*MemInfo, error) { meminfo := &MemInfo{}