Skip to content

Commit

Permalink
docs(soa-derive-internal/src/refs.rs): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
schneiderfelipe committed May 14, 2024
1 parent c9bec51 commit 22242bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soa-derive-internal/src/refs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub fn derive(input: &Input) -> TokenStream {
/// into an owned value. This is only available if all fields
/// implement `Clone`.
pub fn to_owned(&self) -> #name
// only expose to_owned is all fields are Clone
// only expose to_owned if all fields are Clone
// https://github.com/rust-lang/rust/issues/48214#issuecomment-1150463333
where #( for<'b> #fields_types: Clone, )*
{
Expand All @@ -138,7 +138,7 @@ pub fn derive(input: &Input) -> TokenStream {
/// into an owned value. This is only available if all fields
/// implement `Clone`.
pub fn to_owned(&self) -> #name
// only expose to_owned is all fields are Clone
// only expose to_owned if all fields are Clone
// https://github.com/rust-lang/rust/issues/48214#issuecomment-1150463333
where #( for<'b> #fields_types: Clone, )*
{
Expand Down

0 comments on commit 22242bd

Please sign in to comment.