aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
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/os
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/os')
-rw-r--r--lib/std/os/uefi/pool_allocator.zig2
-rw-r--r--lib/std/os/uefi/tables/boot_services.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/uefi/pool_allocator.zig b/lib/std/os/uefi/pool_allocator.zig
index 3294621a18..544179aad3 100644
--- a/lib/std/os/uefi/pool_allocator.zig
+++ b/lib/std/os/uefi/pool_allocator.zig
@@ -90,7 +90,7 @@ const pool_allocator_vtable = Allocator.VTable{
.free = UefiPoolAllocator.free,
};
-/// Asserts allocations are 8 byte aligned and calls `boot_services.allocatePool`.
+/// Asserts allocations are 8 byte aligned and calls `boot_services.allocatePool`.
pub const raw_pool_allocator = Allocator{
.ptr = undefined,
.vtable = &raw_pool_allocator_table,
diff --git a/lib/std/os/uefi/tables/boot_services.zig b/lib/std/os/uefi/tables/boot_services.zig
index ee1e72f094..4774375b3c 100644
--- a/lib/std/os/uefi/tables/boot_services.zig
+++ b/lib/std/os/uefi/tables/boot_services.zig
@@ -67,7 +67,7 @@ pub const BootServices = extern struct {
/// Reinstalls a protocol interface on a device handle
reinstallProtocolInterface: fn (handle: Handle, protocol: *align(8) const Guid, old_interface: *anyopaque, new_interface: *anyopaque) callconv(.C) Status,
- /// Removes a protocol interface from a device handle. Usage of
+ /// Removes a protocol interface from a device handle. Usage of
/// uninstallMultipleProtocolInterfaces is recommended over this.
uninstallProtocolInterface: fn (handle: Handle, protocol: *align(8) const Guid, interface: *anyopaque) callconv(.C) Status,