Skip to content

Commit

Permalink
fix documentation of take function
Browse files Browse the repository at this point in the history
  • Loading branch information
Quillraven committed Dec 20, 2024
1 parent ce471b0 commit 646ef45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ interface EntityBag {
fun singleOrNull(predicate: (Entity) -> Boolean): Entity?

/**
* Returns a [List] containing the first [n] [entities][Entity].
* Returns a [List] containing the first [n][] [entities][Entity].
*/
fun take(n: Int): EntityBag
}
Expand Down Expand Up @@ -1249,7 +1249,7 @@ class MutableEntityBag(
}

/**
* Returns a [List] containing the first [n] [entities][Entity].
* Returns a [List] containing the first [n][] [entities][Entity].
*/
override fun take(n: Int): EntityBag {
val result = MutableEntityBag(max(min(n, size), 0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ data class Family(
fun singleOrNull(predicate: (Entity) -> Boolean): Entity? = mutableEntities.singleOrNull(predicate)

/**
* Returns a [List] containing the first [n] [entities][Entity].
* Returns a [List] containing the first [n][] [entities][Entity].
*/
fun take(n: Int): EntityBag = mutableEntities.take(n)

Expand Down

0 comments on commit 646ef45

Please sign in to comment.