on master help sign in
Tiny fix in the tutorial on default implicits

Fixed a tiny typo (`Z` => `n`)

commite5334ea76e3df44ac8fbd9525289d5701a40debc authorPatrick Hilhorst <patrickhilhorst97@gmail.com> dateThu 12 Oct 2017, 19:23 (9 years ago) parentca86196
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