Skip to content

Commit

Permalink
Reduce the number of typos (#4100)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Sep 7, 2024
1 parent ac8bd2d commit 3474f3c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand All @@ -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)

--------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions crates/example-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion crates/js-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion crates/web-sys/tests/wasm/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down
2 changes: 1 addition & 1 deletion guide/src/web-sys/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/wasm/getters_and_setters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3474f3c

Please sign in to comment.