We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14eee13 + 8c78b47 commit 14c3b56Copy full SHA for 14c3b56
docs/docs/reference/contextual/extension-methods.md
@@ -54,7 +54,7 @@ object IntOpsEx extends IntOps {
54
def (i: Int).safeDiv(x: Int): Option[Int] =
55
// extension method brought into scope via inheritance from IntOps
56
if x.isZero then None
57
- else Some(i % x)
+ else Some(i / x)
58
}
59
60
trait SafeDiv {
0 commit comments