on master help sign in
Merge pull request #4120 from Synthetica9/patch-2

Tiny fix in the tutorial on default implicits

commitecc97b5f2785c7f1ef012593ac648872ce3ba93c authorAhmad Salim Al-Sibahi <asal@itu.dk> dateThu 12 Oct 2017, 19:44 (9 years ago) parentca86196e5334ea
1 file changed+1−1
docs/tutorial/miscellany.rst+1−1
docs/tutorial/miscellany.rst+1−1
@@ -86,7 +86,7 @@ number as 0), we could write:
8686
8787 fibonacci : {default 0 lag : Nat} -> {default 1 lead : Nat} -> (n : Nat) -> Nat
8888 fibonacci {lag} Z = lag
89− fibonacci {lag} {lead} (S Z) = fibonacci {lag=lead} {lead=lag+lead} n
89+ fibonacci {lag} {lead} (S n) = fibonacci {lag=lead} {lead=lag+lead} n
9090
9191After this definition, ``fibonacci 5`` is equivalent to ``fibonacci {lag=0} {lead=1} 5``,
9292and will return the 5th fibonacci number. Note that while this works, this is not the