From 7503f090eebb15ff8bcc6f142e826481e178a464 Mon Sep 17 00:00:00 2001 From: renerocksai Date: Sun, 16 Mar 2025 16:42:08 +0100 Subject: [PATCH] doc update --- src/endpoint.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/endpoint.zig b/src/endpoint.zig index 11515b5..d9b1b6e 100644 --- a/src/endpoint.zig +++ b/src/endpoint.zig @@ -1,6 +1,9 @@ //! Endpoint and supporting types. -//! Create one and define all callbacks. Then, pass it to a HttpListener's -//! `register()` function to register with the listener. +//! +//! An Endpoint can be any zig struct that defines all the callbacks lilsted +//! below. +//! Pass an instance of an Endpoint struct to zap.Endpoint.Listener.register() +//! function to register with the listener. //! //! **NOTE**: Endpoints must implement the following "interface": //!