Skip to content

Commit

Permalink
Fix scaladoc for UInt.unary_!
Browse files Browse the repository at this point in the history
It performs the operation (x === 0.U), just like in C.   The scaladoc
incorrectly described it as performing the operation !x(0).  (Obviously, these
are equivalent for Bool, but not for UInt in general).
  • Loading branch information
aswaterman committed Jan 17, 2019
1 parent 9a0ce22 commit 75caf7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chiselFrontend/src/main/scala/chisel3/core/Bits.scala
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ sealed class UInt private[core] (width: Width) extends Bits(width) with Num[UInt

/** Unary not
*
* @return a hardware [[Bool]] asserted if the least significant bit of this $coll is zero
* @return a hardware [[Bool]] asserted if this $coll equals zero
* @group Bitwise
*/
final def unary_! () : Bool = macro SourceInfoTransform.noArg
Expand Down

0 comments on commit 75caf7e

Please sign in to comment.