From c2c3cb22629c9f321a016620db5f5b514e925898 Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Wed, 5 Nov 2025 22:28:05 +0900 Subject: [PATCH] docs: Update doc comments for `std.math.isPowerOfTwo` --- lib/std/math.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/math.zig b/lib/std/math.zig index c1b489a41d50..668dd494b664 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -1118,6 +1118,8 @@ pub fn alignCast(comptime alignment: Alignment, ptr: anytype) AlignCastError!Ali return error.UnalignedMemory; } +/// Returns whether `int` is an integral power of two. +/// /// Asserts `int > 0`. pub fn isPowerOfTwo(int: anytype) bool { assert(int > 0);