From 3ac54203d3fd24d41c75ca7cea8d9bbead729f32 Mon Sep 17 00:00:00 2001 From: Alf Richter Date: Sun, 18 Feb 2018 15:25:20 +0100 Subject: Fixed small bug in example (#133) --- docs/pages/2 - Configuring Mill.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/pages') 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. -- cgit v1.2.3