From ee7bebc94fa5a19757724187bc2b0b1727bb87ff Mon Sep 17 00:00:00 2001
From: danicampora <daniel@wipy.io>
Date: Thu, 22 Oct 2015 20:23:28 +0200
Subject: [PATCH] docs: Correct machine.RTC examples.

---
 docs/library/machine.RTC.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/library/machine.RTC.rst b/docs/library/machine.RTC.rst
index fcfc14f50..c69e4781a 100644
--- a/docs/library/machine.RTC.rst
+++ b/docs/library/machine.RTC.rst
@@ -9,8 +9,8 @@ and time.
 Example usage::
 
     rtc = machine.RTC()
-    rtc.datetime((2014, 5, 1, 4, 13, 0, 0, 0))
-    print(rtc.datetime())
+    rtc.init((2014, 5, 1, 4, 13, 0, 0, 0))
+    print(rtc.now())
 
 
 Constructors
@@ -23,7 +23,7 @@ Constructors
 Methods
 -------
 
-.. method:: rtc.init(id, datetime)
+.. method:: rtc.init(datetime)
 
    Initialise the RTC. Datetime is a tuple of the form:
    
-- 
GitLab