Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions facet-core/src/types/def/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ pub enum Def {
/// e.g. `HashMap<String, T>`
Map(MapDef),

/// Unique set of homogenous values
/// Unique set of homogeneous values
///
/// e.g. `HashSet<T>`
Set(SetDef),

/// Ordered list of heterogenous values, variable size
/// Ordered list of heterogeneous values, variable size
///
/// e.g. `Vec<T>`
List(ListDef),
Expand Down
2 changes: 1 addition & 1 deletion facet-macros-emit/src/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ mod tests {
use crate::LifetimeName;
use quote::{ToTokens as _, quote};

// Helper to render ToTokens implementors to string for comparison
// Helper to render ToTokens implementers to string for comparison
fn render_to_string<T: quote::ToTokens>(t: T) -> String {
quote!(#t).to_string()
}
Expand Down
2 changes: 1 addition & 1 deletion facet-macros-parse/src/function/fn_shape_input.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use proc_macro2::TokenStream;
use unsynn::*;

// Re-use the generics parser from our other module
// Reuse the generics parser from our other module
use crate::generics::GenericParams;

unsynn! {
Expand Down
2 changes: 1 addition & 1 deletion facet-macros-parse/src/function/func_sig.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use proc_macro2::TokenStream;
use unsynn::*;

// Re-use the types from our other modules
// Reuse the types from our other modules
use crate::func_params::Parameter;
use crate::generics::GenericParams;
use crate::ret_type::ReturnType;
Expand Down
2 changes: 1 addition & 1 deletion facet-macros-parse/src/function/type_params.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use proc_macro2::TokenStream;
use unsynn::*;

// Re-use the generics parser
// Reuse the generics parser
use crate::generics::GenericParams;

/// Extract just the type parameter names from generic parameters
Expand Down
2 changes: 1 addition & 1 deletion facet-reflect/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub enum ReflectError {
/// An unknown error occurred.
Unknown,

/// An error occured while putting
/// An error occurred while putting
TryFromError {
/// The shape of the value being converted from.
src_shape: &'static Shape,
Expand Down
2 changes: 1 addition & 1 deletion facet-reflect/src/partial/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ enum PartialState {

/// A type-erased, heap-allocated, partially-initialized value.
///
/// [Partial] keeps track of the state of initialiation of the underlying
/// [Partial] keeps track of the state of initialization of the underlying
/// value: if we're building `struct S { a: u32, b: String }`, we may
/// have initialized `a`, or `b`, or both, or neither.
///
Expand Down
2 changes: 1 addition & 1 deletion facet-reflect/src/partial/partial_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ impl<'facet> Partial<'facet> {
fr.deinit();

// SAFETY: `fr.shape` and `src_shape` are the same, so they have the same size,
// and the preconditions for this function are that `src_value` is fully intialized.
// and the preconditions for this function are that `src_value` is fully initialized.
unsafe {
// unwrap safety: the only failure condition for copy_from is that shape is unsized,
// which is not possible for `Partial`
Expand Down
4 changes: 2 additions & 2 deletions facet-reflect/src/peek/list_like.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use core::{fmt::Debug, marker::PhantomData};
/// Fields for types which act like lists
#[derive(Clone, Copy)]
pub enum ListLikeDef {
/// Ordered list of heterogenous values, variable size
/// Ordered list of heterogeneous values, variable size
///
/// e.g. `Vec<T>`
List(facet_core::ListDef),

/// Fixed-size array of heterogenous values
/// Fixed-size array of heterogeneous values
///
/// e.g. `[T; 32]`
Array(facet_core::ArrayDef),
Expand Down
Loading