Skip to content

Commit

Permalink
Add a note for copy pasted declaration
Browse files Browse the repository at this point in the history
Co-authored-by: Ignat Beresnev <ignat.beresnev@jetbrains.com>
  • Loading branch information
whyoleg and IgnatBeresnev authored Nov 16, 2023
1 parent 7728aa6 commit e776ce6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ internal class AllTypesPageNode(
}
}

// copy-pasted from dokka-core, not sure why it was needed in the first place
private infix fun <T> List<T>.shallowEq(other: List<T>) =
this === other || (this.size == other.size && (this zip other).all { (a, b) -> a === b })

0 comments on commit e776ce6

Please sign in to comment.