diff --git a/packages/perseus-macro/src/entrypoint.rs b/packages/perseus-macro/src/entrypoint.rs index ffdf83a19b..fc95ab7904 100644 --- a/packages/perseus-macro/src/entrypoint.rs +++ b/packages/perseus-macro/src/entrypoint.rs @@ -77,7 +77,7 @@ impl Parse for MainFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as entrypoints", + "only functions can be used as entrypoints", )), } } @@ -152,7 +152,7 @@ impl Parse for EngineMainFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as entrypoints", + "only functions can be used as entrypoints", )), } } diff --git a/packages/perseus-macro/src/head.rs b/packages/perseus-macro/src/head.rs index 13e6319294..c9b0c7ebc7 100644 --- a/packages/perseus-macro/src/head.rs +++ b/packages/perseus-macro/src/head.rs @@ -113,7 +113,7 @@ impl Parse for HeadFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as head functions", + "only functions can be used as head functions", )), } } diff --git a/packages/perseus-macro/src/lib.rs b/packages/perseus-macro/src/lib.rs index 796c19622b..cfaa27e9cf 100644 --- a/packages/perseus-macro/src/lib.rs +++ b/packages/perseus-macro/src/lib.rs @@ -256,7 +256,7 @@ pub fn engine_main(_args: TokenStream, input: TokenStream) -> TokenStream { /// wrapped in a `Signal`, but you can also enable nested fine-grained /// reactivity by adding the `#[rx::nested("field_name", FieldTypeRx)]` helper /// attribute to the `struct` (not the field, that isn't supported by Rust yet), -/// where `field_name` is the name of the field you want to use ensted +/// where `field_name` is the name of the field you want to use instead /// reactivity on, and `FieldTypeRx` is the wrapper type that will be expected. /// This should be created by using this macro on the original `struct` type. /// diff --git a/packages/perseus-macro/src/rx_state.rs b/packages/perseus-macro/src/rx_state.rs index 9d57915f7e..7813b9df49 100644 --- a/packages/perseus-macro/src/rx_state.rs +++ b/packages/perseus-macro/src/rx_state.rs @@ -26,7 +26,7 @@ pub fn make_rx_impl(mut orig_struct: ItemStruct, name_raw: Ident) -> TokenStream mid_struct.ident = mid_name.clone(); // Look through the attributes for any that warn about nested fields // These can't exist on the fields themselves because they'd be parsed before - // this macro, and tehy're technically invalid syntax (grr.) When we come + // this macro, and they're technically invalid syntax (grr.) When we come // across these fields, we'll run `.make_rx()` on them instead of naively // wrapping them in an `RcSignal` let nested_fields = mid_struct @@ -154,7 +154,7 @@ pub fn make_rx_impl(mut orig_struct: ItemStruct, name_raw: Ident) -> TokenStream let wrapper_ty = nested_fields_map.get(field.ident.as_ref().unwrap()); field.ty = if let Some(wrapper_ty) = wrapper_ty { // If we don't make this a reference, nested properties have to be cloned (not - // nice for ergonomics) TODO Chekc back on this, could bite + // nice for ergonomics) TODO Check back on this, could bite // back! syn::Type::Verbatim(quote!(&'rx #wrapper_ty<'rx>)) } else { diff --git a/packages/perseus-macro/src/state_fns.rs b/packages/perseus-macro/src/state_fns.rs index 1690c0638e..1de8d0c16c 100644 --- a/packages/perseus-macro/src/state_fns.rs +++ b/packages/perseus-macro/src/state_fns.rs @@ -13,7 +13,7 @@ pub struct StateFn { /// The body of the function. pub block: Box, /// The arguments that the function takes. We don't need to modify these - /// because we wrap them with a functin that does serializing/ + /// because we wrap them with a function that does serializing/ /// deserializing. pub args: Punctuated, /// The visibility of the function. @@ -77,7 +77,7 @@ impl Parse for StateFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as tests", + "only functions can be used as tests", )), } } diff --git a/packages/perseus-macro/src/template.rs b/packages/perseus-macro/src/template.rs index 151c9ae3f6..fcd3ae1ac3 100644 --- a/packages/perseus-macro/src/template.rs +++ b/packages/perseus-macro/src/template.rs @@ -94,7 +94,7 @@ impl Parse for TemplateFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as templates", + "only functions can be used as templates", )), } } diff --git a/packages/perseus-macro/src/template_rx.rs b/packages/perseus-macro/src/template_rx.rs index 9d23ea9a6a..9c877e26c3 100644 --- a/packages/perseus-macro/src/template_rx.rs +++ b/packages/perseus-macro/src/template_rx.rs @@ -99,7 +99,7 @@ impl Parse for TemplateFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as templates", + "only functions can be used as templates", )), } } @@ -168,7 +168,7 @@ pub fn template_impl(input: TemplateFn) -> TokenStream { }; let name_string = name.to_string(); // Handle the case in which the template is just using global state and the - // first argument is the unit type That's represented for Syn as a typle + // first argument is the unit type That's represented for Syn as a tuple // with no elements match rx_props_ty { // This template takes dummy state and global state diff --git a/packages/perseus-macro/src/test.rs b/packages/perseus-macro/src/test.rs index ce75931299..c7cbf31990 100644 --- a/packages/perseus-macro/src/test.rs +++ b/packages/perseus-macro/src/test.rs @@ -110,7 +110,7 @@ impl Parse for TestFn { } item => Err(syn::Error::new_spanned( item, - "only funtions can be used as tests", + "only functions can be used as tests", )), } }