Skip to content

Commit

Permalink
Merge pull request #1515 from OSamuelAlmeida/master
Browse files Browse the repository at this point in the history
Fixed extra indentation at line 43 in Phantom Testcase example.
  • Loading branch information
marioidival authored Mar 7, 2022
2 parents d47b44b + 89b9caf commit d504324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generics/phantom/testcase_units.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct Length<Unit>(f64, PhantomData<Unit>);
/// The `Add` trait defines the behavior of the `+` operator.
impl<Unit> Add for Length<Unit> {
type Output = Length<Unit>;
type Output = Length<Unit>;
// add() returns a new `Length` struct containing the sum.
fn add(self, rhs: Length<Unit>) -> Length<Unit> {
Expand Down

0 comments on commit d504324

Please sign in to comment.