Skip to content

Commit e01e711

Browse files
committed
Add the other rp.py* functions to the mini-doc
1 parent 96dfaa0 commit e01e711

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

wasm/demo/src/index.ejs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<p>
1010
RustPython is a Python interpreter written in Rust. This demo is
1111
compiled from Rust to WebAssembly so it runs in the browser.<br>
12-
Please input your Python code below and click <kbd>Run</kbd>
12+
Input your Python code below and click <kbd>Run</kbd>
1313
(or <kbd>Ctrl+Enter</kbd>), or you can open up your
14-
browser's devtools and play with <code>rp.pyEval('print("a")')</code>
14+
browser's devtools and play with <code>rp.pyEval('1 + 1')</code>
1515
</p>
1616
<div id="code-wrapper">
1717
<textarea id="code">
@@ -31,9 +31,13 @@
3131
<textarea id="console" readonly>Loading...</textarea>
3232

3333
<h3>Interactive shell</h3>
34-
<div id="terminal"></div>
34+
<div id="terminal"></div>
3535

36-
<p>Here's some info regarding the <code>rp.pyEval()</code> function</p>
36+
<p>
37+
Here's some info regarding the <code>rp.pyEval()</code>,
38+
<code>rp.pyExec()</code>, and <code>rp.pyExecSingle()</code>
39+
functions
40+
</p>
3741
<ul>
3842
<li>
3943
You can return variables from python and get them returned to

0 commit comments

Comments
 (0)