Skip to content

Commit 4399004

Browse files
Googlercopybara-github
authored andcommitted
Fix some typographical errors in the 'subpackages' docs.
PiperOrigin-RevId: 425942284
1 parent 45ce545 commit 4399004

File tree

1 file changed

+5
-4
lines changed
  • src/main/java/com/google/devtools/build/docgen/templates/be

1 file changed

+5
-4
lines changed

src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,12 +651,12 @@ sh_binary(
651651
that lists subpackages instead of files and directories. It uses the same
652652
path patterns as <code>glob()</code> and can match any subpackage that is a
653653
direct decendant of the currently loading BUILD file. See <a
654-
href="#glob">glob</a> for detailed explinations and example of include and
654+
href="#glob">glob</a> for a detailed explanation and examples of include and
655655
exclude patterns.
656656
</p>
657657

658658
<p>
659-
The resulting list of subpackages returned is in sorted order and contains a
659+
The resulting list of subpackages returned is in sorted order and contains
660660
paths relative to the current loading package that match the given patterns in
661661
<code>include</code> and not those in <code>exclude</code>.
662662

@@ -675,15 +675,16 @@ sh_binary(
675675
# In foo/BUILD a call to
676676
subs = subpackages(include = ["**"])
677677

678-
# results in subs == ["sub", "foo/bar/baz"]`
678+
# results in subs == ["sub", "bar/baz"]
679679
#
680-
# foo/sub/deeper is not included because it is a subpackage of 'foo/sub' not of
680+
# 'sub/deeper' is not included because it is a subpackage of 'foo/sub' not of
681681
# 'foo'
682682
</pre>
683683

684684
<p>
685685
In general it is preferred that instead of calling this function directly
686686
that users use the 'subpackages' module of
687+
<a href="https://github.com/bazelbuild/bazel-skylib">skylib</a>.
687688

688689
#if (!$singlePage)
689690
#parse("com/google/devtools/build/docgen/templates/be/footer.vm")

0 commit comments

Comments
 (0)