OSDN Git Service

Update bit.md
authororzcyand1317 <36555123+orzcyand1317@users.noreply.github.com>
Mon, 4 Mar 2019 10:15:35 +0000 (18:15 +0800)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2019 10:15:35 +0000 (18:15 +0800)
docs/math/bit.md

index 44553df..c79a58f 100644 (file)
@@ -204,7 +204,7 @@ void swap(int &a, int &b) {
     ```cpp
     bool isFactorialofTwo(int n) {
       return n > 0 ? (n & (n - 1)) == 0 : false;
-      // 当然你也可以写成下面这种形式:
+      // 当然你也可以使用下面这种更为简便的写法:
       // return n > 0 && (n & (n - 1)) == 0;
       /* 如果是 2 的幂,n 一定是 100... n-1 就是 1111....
          所以做与运算结果为 0 */