From a24c9a987fcf9460fdf00ef214bcbbc4c3c75343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Oriani?= Date: Thu, 17 Aug 2017 01:53:39 -0700 Subject: [PATCH] Improve Boolean infix functions' documentation (#1249) --- core/builtins/native/kotlin/Boolean.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/builtins/native/kotlin/Boolean.kt b/core/builtins/native/kotlin/Boolean.kt index eea0ce4a3cd..bfcdfc9b7b0 100644 --- a/core/builtins/native/kotlin/Boolean.kt +++ b/core/builtins/native/kotlin/Boolean.kt @@ -27,12 +27,14 @@ public class Boolean private constructor() : Comparable { public operator fun not(): Boolean /** - * Performs a logical `and` operation between this Boolean and the [other] one. + * Performs a logical `and` operation between this Boolean and the [other] one. Unlike the `&&` operator, + * this function does not perform short-circuit evaluation. Both `this` and [other] will always be evaluated. */ public infix fun and(other: Boolean): Boolean /** - * Performs a logical `or` operation between this Boolean and the [other] one. + * Performs a logical `or` operation between this Boolean and the [other] one. Unlike the `||` operator, + * this function does not perform short-circuit evaluation. Both `this` and [other] will always be evaluated. */ public infix fun or(other: Boolean): Boolean