Commit d43c6dcb authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #134 from thatneat/patch-1

`square` -> `cube` to avoid aliasing
parents 79c97f8d 8c83cfa7
...@@ -162,16 +162,16 @@ Likewise, you can use Javascript objects from Python. ...@@ -162,16 +162,16 @@ Likewise, you can use Javascript objects from Python.
%% js %% js
// javascript // javascript
function square(x) { function cube(x) {
return x*x; return x*x*x;
} }
%% md %% md
To call this function from Python... To call this function from Python...
%% code {"language":"py"} %% code {"language":"py"}
from js import square from js import cube
square(4) cube(4)
%% md %% md
## Exceptions ## Exceptions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment