aboutsummaryrefslogtreecommitdiff
path: root/lib/std/packed_int_array.zig
diff options
context:
space:
mode:
authorDamien Firmenich <fir.damien@gmail.com>2022-04-05 17:08:33 +0200
committerGitHub <noreply@github.com>2022-04-05 18:08:33 +0300
commit5fafcc2b629e2ff00755b2bf45e903590f04aa9f (patch)
tree143bde0c47f71678a3d7f340073f519f7c41b7d2 /lib/std/packed_int_array.zig
parent95a87e88fac3fc563ac3baaf4eb8027341f4131e (diff)
downloadzig-5fafcc2b629e2ff00755b2bf45e903590f04aa9f.tar.gz
zig-5fafcc2b629e2ff00755b2bf45e903590f04aa9f.zip
zig fmt: remove trailing whitespace on doc comments
Fixes #11353 The renderer treats comments and doc comments differently since doc comments are parsed into the Ast. This commit adds a check after getting the text for the doc comment and trims whitespace at the end before rendering. The `a = 0,` in the test is here to avoid a ParseError while parsing the test.
Diffstat (limited to 'lib/std/packed_int_array.zig')
-rw-r--r--lib/std/packed_int_array.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/packed_int_array.zig b/lib/std/packed_int_array.zig
index 599f02ca89..a07fc13af1 100644
--- a/lib/std/packed_int_array.zig
+++ b/lib/std/packed_int_array.zig
@@ -182,7 +182,7 @@ pub fn PackedIntIo(comptime Int: type, comptime endian: Endian) type {
/// Creates a bit-packed array of `Int`. Non-byte-multiple integers
/// will take up less memory in PackedIntArray than in a normal array.
-/// Elements are packed using native endianess and without storing any
+/// Elements are packed using native endianess and without storing any
/// meta data. PackedArray(i3, 8) will occupy exactly 3 bytes
/// of memory.
pub fn PackedIntArray(comptime Int: type, comptime int_count: usize) type {