Merge pull request #134 from thatneat/patch-1

`square` -> `cube` to avoid aliasing
This commit is contained in:
Michael Droettboom 2018-09-04 09:24:47 -04:00 committed by GitHub
commit d43c6dcb43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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