summaryrefslogtreecommitdiff
path: root/docs/pages/2 - Configuring Mill.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/pages/2 - Configuring Mill.md')
-rw-r--r--docs/pages/2 - Configuring Mill.md4
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.