pchiusano/fpinscala-exercises — pull request #10 by everpeace (2012-03-13 12:46:58+00:00)
Title: typo in fibs

There was a typo in fibs.

diff --git a/src/main/scala/fpinscala/answers/laziness.scala b/src/main/scala/fpinscala/answers/laziness.scala
index 5082ed9..27df66e 100644
--- a/src/main/scala/fpinscala/answers/laziness.scala
+++ b/src/main/scala/fpinscala/answers/laziness.scala
@@ -29,7 +29,7 @@ object Stream {
Stream.cons(i, from(i+1))

def fibs: Stream[Int] = {
- def go(lag2: Int, lag1: Int): Stream[Int] =
+ def go(lag1: Int, lag2: Int): Stream[Int] =
Stream.cons(lag1, go(lag2, lag1+lag2))
go(0, 1)
}