From 638942069d1c6518caa80a3868ac334988f4990d Mon Sep 17 00:00:00 2001 From: Aster Date: Thu, 30 Jan 2025 18:08:55 +0800 Subject: [PATCH] Unify the format of wit files --- wit/deps/io/poll.wit | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/wit/deps/io/poll.wit b/wit/deps/io/poll.wit index 9bcbe8e..8d74fd8 100644 --- a/wit/deps/io/poll.wit +++ b/wit/deps/io/poll.wit @@ -8,19 +8,19 @@ interface poll { @since(version = 0.2.0) resource pollable { - /// Return the readiness of a pollable. This function never blocks. - /// - /// Returns `true` when the pollable is ready, and `false` otherwise. - @since(version = 0.2.0) - ready: func() -> bool; + /// Return the readiness of a pollable. This function never blocks. + /// + /// Returns `true` when the pollable is ready, and `false` otherwise. + @since(version = 0.2.0) + ready: func() -> bool; - /// `block` returns immediately if the pollable is ready, and otherwise - /// blocks until ready. - /// - /// This function is equivalent to calling `poll.poll` on a list - /// containing only this pollable. - @since(version = 0.2.0) - block: func(); + /// `block` returns immediately if the pollable is ready, and otherwise + /// blocks until ready. + /// + /// This function is equivalent to calling `poll.poll` on a list + /// containing only this pollable. + @since(version = 0.2.0) + block: func(); } /// Poll for completion on a set of pollables.