diff --git a/docs/06-concepts/01-working-with-endpoints/02-endpoint-inheritance.md b/docs/06-concepts/01-working-with-endpoints/02-endpoint-inheritance.md index b3dd52ab..fe19d616 100644 --- a/docs/06-concepts/01-working-with-endpoints/02-endpoint-inheritance.md +++ b/docs/06-concepts/01-working-with-endpoints/02-endpoint-inheritance.md @@ -79,7 +79,7 @@ class CalculatorEndpoint extends Endpoint { class MyCalculatorEndpoint extends CalculatorEndpoint {} ``` -Since `CalculatorEndpoint` is marked as `@doNotGenerate`, it will not be exposed on the server and no client class will be generated for it. Only `MyCalculatorEndpoint` will be accessible from the client, which provides the inherited `add` methods from its parent class. Unlike abstract endpoints, when a parent is marked with `@doNotGenerate`, the generated client class will implement the base endpoint class directly rather than extending a generated abstract parent class. +Since `CalculatorEndpoint` is marked as `@doNotGenerate`, it will not be exposed on the server, and no client class will be generated for it. Only `MyCalculatorEndpoint` will be accessible from the client, which provides the inherited `add` method from its parent class. When a parent is marked with `@doNotGenerate`, no client class is generated for the parent. The subclass's client class extends `EndpointRef` directly, with the parent's methods inlined alongside the subclass's own methods. ## Overriding endpoint methods @@ -97,7 +97,7 @@ abstract class GreeterBaseEndpoint extends Endpoint { class ExcitedGreeterEndpoint extends GreeterBaseEndpoint { @override Future greet(Session session, String name) async { - return '${super.hello(session, name)}!!!'; + return '${await super.greet(session, name)}!!!'; } } ```