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
// javascript
function square(x) {
return x*x;
function cube(x) {
return x*x*x;
}
%% md
To call this function from Python...
%% code {"language":"py"}
from js import square
square(4)
from js import cube
cube(4)
%% md
## Exceptions