Skip to content

Commit 276b51c

Browse files
Merge pull request RustPython#338 from stratusjerry/master
Spellcheck
2 parents 835a557 + 7134885 commit 276b51c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

wasm/demo/src/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<h1>RustPython Demo</h1>
99
<p>
10-
RustPython is a Python interpreter writter in Rust. This demo is
10+
RustPython is a Python interpreter written in Rust. This demo is
1111
compiled from Rust to WebAssembly so it runs in the browser.<br>
1212
Please input your Python code below and click <kbd>Run</kbd>, or you
1313
can open up your browser's devtools and play with
@@ -44,7 +44,7 @@ <h3>Standard Output</h3>
4444
<ul>
4545
<li>
4646
<code>stdout</code>: either a string with a css selector
47-
to a textarea element or a function that recieves a
47+
to a textarea element or a function that receives a
4848
string when the <code>print</code> function is called in
4949
python. The default value is <code>console.log</code>.
5050
</li>
@@ -57,7 +57,7 @@ <h3>Standard Output</h3>
5757
</ul>
5858
</li>
5959
<li>
60-
JS functions that get passed to python will recieve positional
60+
JS functions that get passed to python will receive positional
6161
args as positional args and kwargs as the
6262
<code>this</code> argument
6363
</li>

wasm/lib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pyEval(code, options?);
2828
2929
- `vars?`: `{ [key: string]: any }`: Variables passed to the VM that can be
3030
accessed in Python with the variable `js_vars`. Functions do work, and
31-
recieve the Python kwargs as the `this` argument.
31+
receive the Python kwargs as the `this` argument.
3232
- `stdout?`: `(out: string) => void`: A function to replace the native print
3333
function, by default `console.log`.
3434

wasm/lib/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustpython_vm::pyobject::{self, PyFuncArgs, PyObjectRef, PyResult};
1111
use rustpython_vm::VirtualMachine;
1212
use wasm_bindgen::{prelude::*, JsCast};
1313

14-
// Hack to comment out wasm-bindgen's typescript definitons
14+
// Hack to comment out wasm-bindgen's typescript definitions
1515
#[wasm_bindgen(typescript_custom_section)]
1616
const TS_CMT_START: &'static str = "/*";
1717

@@ -141,7 +141,7 @@ fn eval(vm: &mut VirtualMachine, source: &str, vars: PyObjectRef) -> PyResult {
141141
///
142142
/// - `vars?`: `{ [key: string]: any }`: Variables passed to the VM that can be
143143
/// accessed in Python with the variable `js_vars`. Functions do work, and
144-
/// recieve the Python kwargs as the `this` argument.
144+
/// receive the Python kwargs as the `this` argument.
145145
/// - `stdout?`: `(out: string) => void`: A function to replace the native print
146146
/// function, by default `console.log`.
147147
pub fn eval_py(source: &str, options: Option<Object>) -> Result<JsValue, JsValue> {

0 commit comments

Comments
 (0)