Skip to content

Commit

Permalink
chore: fix types in some comments (#2413)
Browse files Browse the repository at this point in the history
Signed-off-by: battmdpkq <[email protected]>
  • Loading branch information
battmdpkq authored Mar 9, 2024
1 parent 480d741 commit 4faf3fa
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions integrations/axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ async fn handle_server_fns_inner(
let (status, mut res_headers) =
(res_options_inner.status, res_options_inner.headers.clone());

// it it accepts text/html (i.e., is a plain form post) and doesn't already have a
// Location set, then redirect to to Referer
// if it accepts text/html (i.e., is a plain form post) and doesn't already have a
// Location set, then redirect to Referer
if accepts_html {
if let Some(referrer) = referrer {
let has_location = res.headers().get(LOCATION).is_some();
Expand Down Expand Up @@ -1075,7 +1075,7 @@ where

headers.extend(res_headers.drain());

// This one doesn't use generate_response(), so we need to do this seperately
// This one doesn't use generate_response(), so we need to do this separately
if !headers.contains_key(header::CONTENT_TYPE) {
// Set the Content Type headers on all responses. This makes Firefox show the page source
// without complaining
Expand Down
2 changes: 1 addition & 1 deletion leptos_dom/src/components/each.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ fn unpack_moves(diff: &Diff) -> (Vec<DiffOpMove>, Vec<DiffOpAdd>) {
// ]
// );

// // Now we're going to to the same as above, just with more items
// // Now we're going to do the same as above, just with more items
// //
// // A = 1
// // B = 2, 3
Expand Down
2 changes: 1 addition & 1 deletion leptos_macro/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ impl Docs {
const RSX_START: &str = "# ::leptos::view! {";
const RSX_END: &str = "# };";

// Seperated out of chain to allow rustfmt to work
// Separated out of chain to allow rustfmt to work
let map = |(doc, span): (String, Span)| {
doc.split('\n')
.map(str::trim_end)
Expand Down
2 changes: 1 addition & 1 deletion leptos_reactive/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ impl Runtime {
let children = children.borrow();

if !children.is_empty() {
// avoid going through an iterator in the simple psuedo-recursive case
// avoid going through an iterator in the simple pseudo-recursive case
if children.len() == 1 {
child = children[0];
continue;
Expand Down
2 changes: 1 addition & 1 deletion meta/src/title.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub fn Title(
/// A function that will be applied to any text value before it’s set as the title.
#[prop(optional, into)]
formatter: Option<Formatter>,
/// Sets the the current `document.title`.
/// Sets the current `document.title`.
#[prop(optional, into)]
text: Option<TextProp>,
) -> impl IntoView {
Expand Down

0 comments on commit 4faf3fa

Please sign in to comment.