Skip to content

Commit a5b8f16

Browse files
committed
[skip changelog] Fix variables names and some docstrings
1 parent b0ad3e2 commit a5b8f16

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

commands/compile/compile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
137137
builderCtx.OtherLibrariesDirs = paths.NewPathList(req.GetLibraries()...)
138138
builderCtx.OtherLibrariesDirs.Add(configuration.LibrariesDir(configuration.Settings))
139139

140-
builderCtx.LibrariesDirs = paths.NewPathList(req.Library...)
140+
builderCtx.LibraryDirs = paths.NewPathList(req.Library...)
141141

142142
if req.GetBuildPath() == "" {
143143
builderCtx.BuildPath = bldr.GenBuildPath(sketch.FullPath)

legacy/builder/libraries_loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (s *LibrariesLoader) Run(ctx *types.Context) error {
6161
return errors.WithStack(err)
6262
}
6363

64-
for _, dir := range ctx.LibrariesDirs {
64+
for _, dir := range ctx.LibraryDirs {
6565
// Libraries specified this way have top priority
6666
if err := lm.LoadLibraryFromDir(dir, libraries.Unmanaged); err != nil {
6767
return err

legacy/builder/types/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type Context struct {
6767
BuiltInToolsDirs paths.PathList
6868
BuiltInLibrariesDirs paths.PathList
6969
OtherLibrariesDirs paths.PathList
70-
LibrariesDirs paths.PathList // List of paths pointing to individual libraries root folders
70+
LibraryDirs paths.PathList // List of paths pointing to individual library root folders
7171
SketchLocation *paths.Path
7272
WatchedLocations paths.PathList
7373
ArduinoAPIVersion string

rpc/cc/arduino/cli/commands/v1/compile.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/compile.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ message CompileRequest {
7878
// When set to `true` the compiled binary will be copied to the export
7979
// directory.
8080
google.protobuf.BoolValue export_binaries = 23;
81-
// List of paths to libraries root folders
81+
// List of paths to library root folders
8282
repeated string library = 24;
8383
}
8484

0 commit comments

Comments
 (0)