From 960797b926bb9b34192a2af9e923da4af88ca7a0 Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 21 Mar 2019 21:43:06 +0300 Subject: [PATCH] Replace mistaken "bit sign" with "sign bit" --- core/builtins/native/kotlin/Primitives.kt | 12 ++++++------ generators/builtins/primitives.kt | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/builtins/native/kotlin/Primitives.kt b/core/builtins/native/kotlin/Primitives.kt index 72a57dc6829..996a2d24cc9 100644 --- a/core/builtins/native/kotlin/Primitives.kt +++ b/core/builtins/native/kotlin/Primitives.kt @@ -203,7 +203,7 @@ public class Byte private constructor() : Number(), Comparable { * The resulting `Short` value represents the same numerical value as this `Byte`. * * The least significant 8 bits of the resulting `Short` value are the same as the binary representation of this `Byte` value, - * whereas the most significant 8 bits are filled with the bit sign of this value. + * whereas the most significant 8 bits are filled with the sign bit of this value. */ public override fun toShort(): Short /** @@ -212,7 +212,7 @@ public class Byte private constructor() : Number(), Comparable { * The resulting `Int` value represents the same numerical value as this `Byte`. * * The least significant 8 bits of the resulting `Int` value are the same as the binary representation of this `Byte` value, - * whereas the most significant 24 bits are filled with the bit sign of this value. + * whereas the most significant 24 bits are filled with the sign bit of this value. */ public override fun toInt(): Int /** @@ -221,7 +221,7 @@ public class Byte private constructor() : Number(), Comparable { * The resulting `Long` value represents the same numerical value as this `Byte`. * * The least significant 8 bits of the resulting `Long` value are the same as the binary representation of this `Byte` value, - * whereas the most significant 56 bits are filled with the bit sign of this value. + * whereas the most significant 56 bits are filled with the sign bit of this value. */ public override fun toLong(): Long /** @@ -441,7 +441,7 @@ public class Short private constructor() : Number(), Comparable { * The resulting `Int` value represents the same numerical value as this `Short`. * * The least significant 16 bits of the resulting `Int` value are the same as the binary representation of this `Short` value, - * whereas the most significant 16 bits are filled with the bit sign of this value. + * whereas the most significant 16 bits are filled with the sign bit of this value. */ public override fun toInt(): Int /** @@ -450,7 +450,7 @@ public class Short private constructor() : Number(), Comparable { * The resulting `Long` value represents the same numerical value as this `Short`. * * The least significant 16 bits of the resulting `Long` value are the same as the binary representation of this `Short` value, - * whereas the most significant 48 bits are filled with the bit sign of this value. + * whereas the most significant 48 bits are filled with the sign bit of this value. */ public override fun toLong(): Long /** @@ -696,7 +696,7 @@ public class Int private constructor() : Number(), Comparable { * The resulting `Long` value represents the same numerical value as this `Int`. * * The least significant 32 bits of the resulting `Long` value are the same as the binary representation of this `Int` value, - * whereas the most significant 32 bits are filled with the bit sign of this value. + * whereas the most significant 32 bits are filled with the sign bit of this value. */ public override fun toLong(): Long /** diff --git a/generators/builtins/primitives.kt b/generators/builtins/primitives.kt index da962dee599..547b0392081 100644 --- a/generators/builtins/primitives.kt +++ b/generators/builtins/primitives.kt @@ -315,7 +315,7 @@ class GeneratePrimitives(out: PrintWriter) : BuiltInsSourceGenerator(out) { * The resulting `$otherName` value represents the same numerical value as this `$thisName`. * * The least significant ${fromIntegral.bitSize} bits of the resulting `$otherName` value are the same as the binary representation of this `$thisName` value, - * whereas the most significant ${toIntegral.bitSize - fromIntegral.bitSize} bits are filled with the bit sign of this value. + * whereas the most significant ${toIntegral.bitSize - fromIntegral.bitSize} bits are filled with the sign bit of this value. */ """ }