From a0700f07309b061f1eb0de1553e1e665d735aadf Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Thu, 25 Sep 2025 13:35:05 +1000 Subject: [PATCH] results may return void --- standards/application/waku-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standards/application/waku-api.md b/standards/application/waku-api.md index 0a5dcac..5cc243e 100644 --- a/standards/application/waku-api.md +++ b/standards/application/waku-api.md @@ -51,7 +51,7 @@ An alternative would be to choose a programming language. However, such choice m - Complex pre-defined types are: - `struct`: object and other nested types. - `array`: iterable object containing values of all the same type. - - `result`: an enum type that either contain a return value (success), or an error (failure); The error is left to the implementor. + - `result`: an enum type that either contains a value or void (success), or an error (failure); The error is left to the implementor. - `error`: Left to the implementor on whether `error` types are `string` or `object` in the given language. - Usage of `result` is RECOMMENDED, usage of exceptions is NOT RECOMMENDED, no matter the language.