From 1a20de716336ca5b694bc5792ad5551c3975d85f Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Mon, 18 Feb 2019 11:06:10 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- fs/fs.go | 2 +- mtp/select.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fs.go b/fs/fs.go index 56d33d3..0b5c821 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -45,7 +45,7 @@ type deviceFS struct { options *DeviceFsOptions } -// DeviceFs is a simple filesystem interface to an MTP device. It +// NewDeviceFSRoot is a simple filesystem interface to an MTP device. It // should be wrapped in a Locking(Raw)FileSystem to make sure it is // threadsafe. The file system assumes the device does not touch the // storage. Arguments are the opened mtp device and a directory for the diff --git a/mtp/select.go b/mtp/select.go index 456aca6..5b6e88f 100644 --- a/mtp/select.go +++ b/mtp/select.go @@ -130,7 +130,7 @@ func selectDevice(cands []*Device, pattern string) (*Device, error) { return found[0], nil } -// Return opened MTP device that matches given pattern. +// SelectDevice returns opened MTP device that matches given pattern. func SelectDevice(pattern string) (*Device, error) { c := usb.NewContext()