Skip to content

Commit

Permalink
Merge pull request #1948 from BenMotz/fix-fragment-docstring
Browse files Browse the repository at this point in the history
Fix andFallbackTrue docstring
  • Loading branch information
jatcwang authored Nov 13, 2023
2 parents a20d457 + cb8dd4e commit 0978ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/main/scala/doobie/util/fragments.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ object fragments {
NonEmptyList.fromFoldable(fs).map(nel => and(nel, withParen))
}

/** Similar to andOpt, but defaults to FALSE if passed an empty collection */
/** Similar to andOpt, but defaults to TRUE if passed an empty collection */
def andFallbackTrue[F[_] : Foldable](fs: F[Fragment]): Fragment = {
andOpt(fs).getOrElse(fr"TRUE")
}
Expand Down

0 comments on commit 0978ff2

Please sign in to comment.