Skip to content

Commit

Permalink
DOC fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Feb 17, 2015
1 parent 96e5f44 commit 41e8639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/scripting-ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ splash:go
Go to an URL. This is similar to entering an URL in a browser
address bar, pressing Enter and waiting until page loads.

**Signature:** ``ok, reason = splash.go{url, baseurl=nil, headers=nil}``
**Signature:** ``ok, reason = splash:go{url, baseurl=nil, headers=nil}``

**Parameters:**

Expand Down Expand Up @@ -49,7 +49,7 @@ Error handling example:
.. code-block:: lua
local ok, reason = splash:go("http://example.com")
if not ok:
if not ok then
if reason:sub(0,4) == 'http' then
-- handle HTTP errors
else
Expand Down Expand Up @@ -1043,7 +1043,7 @@ Clear all cookies.

**Signature:** ``n_removed = splash:clear_cookies()``

**Returns** a number of cookies deleted.
**Returns:** a number of cookies deleted.

To delete only specific cookies
use :ref:`splash-delete-cookies`.
Expand All @@ -1063,7 +1063,7 @@ Delete matching cookies.
* url - a string, optional. Only cookies that should be sent to this url
will be deleted.

**Returns** a number of cookies deleted.
**Returns:** a number of cookies deleted.

This function does nothing when both *name* and *url* are nil.
To remove all cookies use :ref:`splash-clear-cookies` method.
Expand Down

0 comments on commit 41e8639

Please sign in to comment.