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.
1 parent fa84627 commit 8c78b47Copy full SHA for 8c78b47
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