Skip to content

Commit b9864db

Browse files
Update src/lib.rs
Co-authored-by: Francesco Guardiani <francescoguard@gmail.com>
1 parent 37f73ae commit b9864db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
//! - The type of the input parameter of the handler needs to implement [`Serialize`](crate::serde::Deserialize) and [`Deserialize`](crate::serde::Deserialize). See [`crate::serde`].
6666
//! - The Result contains the return value or a [`HandlerError`][crate::errors::HandlerError], which can be a [`TerminalError`](crate::errors::TerminalError) or any other Rust's [`std::error::Error`].
6767
//! - The service handler can now be called at `<RESTATE_INGRESS_URL>/MyService/myHandler`. You can optionally override the handler name used via `#[name = "myHandler"]`. More details on handler invocations can be found in the [docs](https://docs.restate.dev/invoke/http).
68-
//! - Implement the trait on a struct. The struct will contain the actual implementation of the handlers.
68+
//! - Implement the trait on a concrete type, for example on a struct.
6969
//! - The first parameter of a handler after `&self` is always a [`Context`](crate::context::Context) to interact with Restate.
7070
//! The SDK stores the actions you do on the context in the Restate journal to make them durable.
7171
//! - Finally, create an HTTP endpoint and bind the service(s) to it. Listen on the specified port (here 9080) for connections and requests.

0 commit comments

Comments
 (0)