Janitor: Fix typos in comments and user-facing strings

Also adapt tests for error messages containing the fixed strings.

No behavior change is intended!
This commit is contained in:
Tobias Hunger 2021-06-27 16:29:02 +02:00 committed by Olivier Goffart
parent 4b12ed03cf
commit 13d7f5e7bd
96 changed files with 290 additions and 288 deletions

View file

@ -50,7 +50,7 @@ fn run_with_global_context(f: &GlobalContextCallback) {
/// Load a .60 files.
///
/// The first argument of this finction is a string to the .60 file
/// The first argument of this function is a string to the .60 file
///
/// The return value is a SixtyFpsComponentType
fn load(mut cx: FunctionContext) -> JsResult<JsValue> {
@ -545,7 +545,7 @@ register_module!(mut m, {
Ok(())
});
/// let some time ellapse for testing purposes
/// let some time elapse for testing purposes
fn mock_elapsed_time(mut cx: FunctionContext) -> JsResult<JsValue> {
let ms = cx.argument::<JsNumber>(0)?.value();
sixtyfps_corelib::tests::sixtyfps_mock_elapsed_time(ms as _);