Reduce the number of typos (#4100)

This commit is contained in:
Bruce Mitchener 2024-09-07 22:36:34 +07:00 committed by GitHub
parent ac8bd2da78
commit 3474f3cff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View File

@ -215,7 +215,7 @@ Released 2024-08-13
* Implement a more reliable way to detect the stack pointer.
[#4036](https://github.com/rustwasm/wasm-bindgen/pull/4036)
* `#[track_caller]` is now always applied on `UnwrapThrowExt` methods when not targetting `wasm32-unknown-unknown`.
* `#[track_caller]` is now always applied on `UnwrapThrowExt` methods when not targeting `wasm32-unknown-unknown`.
[#4042](https://github.com/rustwasm/wasm-bindgen/pull/4042)
* Fixed linked modules emitting snippet files when not using `--split-linked-modules`.
@ -293,7 +293,7 @@ Released 2024-02-06
* Updated the WebGPU WebIDL to the current draft as of 2024-01-30. Note that this retains the previous update's workaround for `GPUPipelineError`, and holds back an update to the `buffer` argument of the `GPUQueue.{writeBuffer,writeTexture}` methods.
[#3816](https://github.com/rustwasm/wasm-bindgen/pull/3816)
* Depreate `--weak-refs` and `WASM_BINDGEN_WEAKREF` in favor of automatic run-time detection.
* Deprecate `--weak-refs` and `WASM_BINDGEN_WEAKREF` in favor of automatic run-time detection.
[#3822](https://github.com/rustwasm/wasm-bindgen/pull/3822)
### Fixed
@ -307,7 +307,7 @@ Released 2024-02-06
* Fixed using `#[wasm_bindgen(js_name = default)]` with `#[wasm_bindgen(module = ...)]`.
[#3823](https://github.com/rustwasm/wasm-bindgen/pull/3823)
* Fixed nighly build of `wasm-bindgen-futures`.
* Fixed nightly build of `wasm-bindgen-futures`.
[#3827](https://github.com/rustwasm/wasm-bindgen/pull/3827)
--------------------------------------------------------------------------------

View File

@ -420,7 +420,7 @@ pub async fn test_example(
"log.entryAdded" => handle_log_event(event.params)?,
"network.responseCompleted" => {
#[derive(Deserialize)]
struct NetworkReponseCompletedParameters {
struct NetworkResponseCompletedParameters {
navigation: Option<String>,
response: NetworkResponseData,
}
@ -432,7 +432,7 @@ pub async fn test_example(
status_text: String,
}
let params: NetworkReponseCompletedParameters =
let params: NetworkResponseCompletedParameters =
serde_json::from_value(event.params)?;
if params.navigation.as_ref() == Some(&navigation) {
if !(200..300).contains(&params.response.status) {

View File

@ -2773,7 +2773,7 @@ impl Number {
/// (without actually being zero).
///
/// [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE)
// Cannot use f64::MIN_POSITIVE since that is the smallest **normal** postitive number.
// Cannot use f64::MIN_POSITIVE since that is the smallest **normal** positive number.
pub const MIN_VALUE: f64 = 5E-324;
/// Special "Not a Number" value.
///

View File

@ -228,7 +228,7 @@ fn element() {
assert_eq!(
element.get_elements_by_class_name("foo").length(),
0,
"Element should not have childs with class foo"
"Element should not have children with class foo"
);
child.class_list().add_1("foo").unwrap();
assert_eq!(

View File

@ -44,7 +44,7 @@ You can use `.as_ref()` to explicitly get a reference to any parent class from
from a type in `web_sys`. Note that because of the number of `AsRef`
implementations you'll likely need to have type inference guidance as well.
### Accessing child clases using `JsCast`
### Accessing child classes using `JsCast`
Finally the `wasm_bindgen::JsCast` trait can be used to implement all manner of
casts between types. It supports static unchecked casts between types as well as

View File

@ -20,7 +20,7 @@ extern "C" {
fn _12_js(rules: Rules) -> Rules;
fn _13_js(rules: Rules) -> Rules;
fn raw_identifer(rules: RulesWithRawField) -> RulesWithRawField;
fn raw_identifier(rules: RulesWithRawField) -> RulesWithRawField;
fn test_getter_compute(x: GetterCompute);
fn test_setter_compute(x: SetterCompute);