Skip to content

Commit

Permalink
Update globs.md (#4476)
Browse files Browse the repository at this point in the history
### Problem

`globs.md` was explaining globs using the outdated subtraction-based excludes.

### Solution

Use the `exclude` syntax. Fixes #4473
  • Loading branch information
Stu Hood committed Apr 17, 2017
1 parent 33c008c commit a6d9063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/common_tasks/globs.md
Expand Up @@ -28,7 +28,7 @@ You can also exclude files from a particular directory:

::python
scala_library(name='scala',
sources=rglobs('*.scala') - rglobs('dir_to_exclude/*.scala')
sources=rglobs('*.scala', exclude=[rglobs('dir_to_exclude/*.scala')]),
)

## See Also
Expand Down

0 comments on commit a6d9063

Please sign in to comment.