Skip to content

Commit

Permalink
Update typos in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 authored Feb 13, 2025
1 parent f72266d commit 67ce350
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub use portrait_codegen::default;
/// # Syntax
/// ```
/// # /*
/// #[portrait::fill(portrait::delegate($delegate_type:ty, $self_to_delegate_value:expr))]
/// #[portrait::fill(portrait::delegate($delegate_type:ty; $self_to_delegate_value:expr))]
/// # */
/// ```
///
Expand Down Expand Up @@ -354,8 +354,8 @@ pub use portrait_codegen::derive;
/// # */
/// ```
///
/// ## `either`
/// If the `either` option is applied, when deriving from enums,
/// ## `enum_either`
/// If the `enum_either` option is applied, when deriving from enums,
/// each match arm is wrapped with a nested tree of `Either::Left(..)`/`Either::Right(..)`s
/// such that each arm bijects to a unique variant of some `Either<Either<Either<..>>>`.
/// This is useful for delegating to separate enum implementations
Expand All @@ -377,7 +377,7 @@ pub use portrait_codegen::derive;
///
/// ```
/// # /*
/// #[portrait(derive_delegate(enum_either = left_wrapper, right_wrapper))]
/// #[portrait(derive_delegate(enum_either = (left_wrapper, right_wrapper)))]
/// fn as_trait(&self) -> impl Trait;
/// # */
/// ```
Expand Down

0 comments on commit 67ce350

Please sign in to comment.