Skip to content

Commit b9b489d

Browse files
committed
Fix functions docstrings
1 parent 922c80f commit b9b489d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

arduino/cores/packagemanager/package_manager.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ func (pm *PackageManager) InstalledBoards() []*cores.Board {
438438
return boards
439439
}
440440

441+
// FindToolsRequiredFromPlatformRelease returns a list of ToolReleases needed by the specified PlatformRelease.
442+
// If a ToolRelease is not found return an error
441443
func (pm *PackageManager) FindToolsRequiredFromPlatformRelease(platform *cores.PlatformRelease) ([]*cores.ToolRelease, error) {
442444
pm.Log.Infof("Searching tools required for platform %s", platform)
443445

arduino/discovery/discoverymanager/discoverymanager.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func (dm *DiscoveryManager) QuitAll() error {
139139
return nil
140140
}
141141

142+
// List returns a list of available ports detected from all discoveries
142143
func (dm *DiscoveryManager) List() []*discovery.Port {
143144
res := []*discovery.Port{}
144145
for _, disc := range dm.discoveries {
@@ -151,7 +152,7 @@ func (dm *DiscoveryManager) List() []*discovery.Port {
151152
return res
152153
}
153154

154-
// ListPorts return the current list of ports detected from all discoveries
155+
// ListSync return the current list of ports detected from all discoveries
155156
func (dm *DiscoveryManager) ListSync() []*discovery.Port {
156157
res := []*discovery.Port{}
157158
for _, disc := range dm.discoveries {

0 commit comments

Comments
 (0)