From 9cf40ec5f7b23b13182d086fafc60c7338ec7b54 Mon Sep 17 00:00:00 2001 From: Gabe Appleton Date: Tue, 25 Oct 2016 17:35:58 -0400 Subject: [PATCH] Correct method error [skip ci] --- docs/javascript/tutorial/sync.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/javascript/tutorial/sync.rst b/docs/javascript/tutorial/sync.rst index eb2d9bd..a7995ac 100644 --- a/docs/javascript/tutorial/sync.rst +++ b/docs/javascript/tutorial/sync.rst @@ -53,8 +53,8 @@ This will raise an :js:class:`Error` if another node has set this value already. Any node which sets a value can change this value as well. Changing the value renews the lease on it. -:js:func:`~js2p.sync.sync_socket.__delitem__` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +:js:func:`~js2p.sync.sync_socket.del` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Any node which owns a key, can clear its value. Doing this will relinquish your lease on that value. Like the above, this call is ``O(n)``.