Skip to content

Commit

Permalink
Fix Either#isNotEmpty()'s KDoc sample (#2694)
Browse files Browse the repository at this point in the history
* Fix Either#isNotEmpty()'s KDoc sample

* Update example-either-43 via gradle knit

Co-authored-by: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com>
  • Loading branch information
ChristianGarcia and i-walker committed Apr 1, 2022
1 parent 4d22603 commit 1c5000a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -1062,8 +1062,8 @@ public sealed class Either<out A, out B> {
*
* fun main(args: Array<String>) {
* //sampleStart
* Either.Left("foo").isEmpty() // Result: false
* Either.Right("foo").isEmpty() // Result: true
* Either.Left("foo").isNotEmpty() // Result: false
* Either.Right("foo").isNotEmpty() // Result: true
* //sampleEnd
* }
* ```
Expand Down
Expand Up @@ -5,7 +5,7 @@ package arrow.core.examples.exampleEither43

fun main(args: Array<String>) {
//sampleStart
Either.Left("foo").isEmpty() // Result: false
Either.Right("foo").isEmpty() // Result: true
Either.Left("foo").isNotEmpty() // Result: false
Either.Right("foo").isNotEmpty() // Result: true
//sampleEnd
}

0 comments on commit 1c5000a

Please sign in to comment.