From b2f44909ad54c1b9973556f41d06710762e2d440 Mon Sep 17 00:00:00 2001
From: Fredrik Bagge Carlson <cont-frb@ulund.org>
Date: Thu, 24 Aug 2017 13:16:54 +0200
Subject: [PATCH] Update docs

---
 README.md    | 4 ++--
 docs/make.jl | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 9079402..822f428 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ for (i,t) = enumerate(0:h:duration)
     @periodically h begin
         y[i] = measure(P)
         r[i] = reference(t)
-        u[i] = calc_control(i,y,r)
+        u[i] = calc_control(y,r)
         control(P, u[i])
     end
 end
@@ -77,7 +77,7 @@ care of updating remembering the state of the system when called.
 ```julia
 G1f = SysFilter(G1)
 G4f = SysFilter(G4)
-function control(i)
+function calc_control(y,r)
     rf = G4f(r)
     e  = rf-y
     u  = G1f(e)
diff --git a/docs/make.jl b/docs/make.jl
index 7e696a5..efb1310 100644
--- a/docs/make.jl
+++ b/docs/make.jl
@@ -13,6 +13,7 @@ makedocs(
     sitename = "LabProcesses",
     pages = [
         "index.md",
+        "README.md"
     ]
 )
 
-- 
GitLab