diff options
author | Alf Richter <h2000@users.noreply.github.com> | 2018-02-18 15:25:20 +0100 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-18 06:25:20 -0800 |
commit | 3ac54203d3fd24d41c75ca7cea8d9bbead729f32 (patch) | |
tree | 23f36d24145b44ddb9f7e2c0c10dcc38c26d1e81 /docs | |
parent | 65779197026a2293407afe7066ff2eaa344f157e (diff) | |
download | mill-3ac54203d3fd24d41c75ca7cea8d9bbead729f32.tar.gz mill-3ac54203d3fd24d41c75ca7cea8d9bbead729f32.tar.bz2 mill-3ac54203d3fd24d41c75ca7cea8d9bbead729f32.zip |
Fixed small bug in example (#133)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/pages/2 - Configuring Mill.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/pages/2 - Configuring Mill.md b/docs/pages/2 - Configuring Mill.md index f7673456..36c5aace 100644 --- a/docs/pages/2 - Configuring Mill.md +++ b/docs/pages/2 - Configuring Mill.md @@ -208,7 +208,7 @@ object foo extends ScalaModule { def lineCount = T{ import ammonite.ops._ - foo.sources().flatMap(ref => ls.rec(ref.path)).flatMap(read.lines).size + foo.sources().flatMap(ref => ls.rec(ref.path)).filter(_.isFile).flatMap(read.lines).size } def printLineCount() = T.command{ @@ -357,4 +357,4 @@ object foo extends ScalaModule { You can also override `unmanagedClasspath` to point it at jars that you want to download from arbitrary URLs. Note that targets like `unmanagedClasspath` are -cached, so your jar is downloaded only once and re-used indefinitely after that.
\ No newline at end of file +cached, so your jar is downloaded only once and re-used indefinitely after that. |