Skip to content

Commit

Permalink
Renaming gservice to service (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur authored Jul 25, 2024
1 parent 9456b42 commit 196daec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples/Standards/extended-vft.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ pub struct ExtendedService {
}
```

In order to extend the functionality it is necessary to use the extends argument in the `#[gservice]` attribute, *ExtendedService* then inherits the methods and properties of *VftService*. This means that all functionality provided by the *VftService* will now be available in the *ExtendedService*.
In order to extend the functionality it is necessary to use the extends argument in the `#[service]` attribute, *ExtendedService* then inherits the methods and properties of *VftService*. This means that all functionality provided by the *VftService* will now be available in the *ExtendedService*.

```rust
#[gservice(extends = VftService, events = Event)]
#[service(extends = VftService, events = Event)]
impl ExtendedService {
// Realization of new functionality
}
Expand All @@ -71,7 +71,7 @@ pub enum Event {
Overall, the implementation of new methods in the extended version takes the following form:

```rust
#[gservice(extends = VftService, events = Event)]
#[service(extends = VftService, events = Event)]
impl ExtendedService {
pub fn new() -> Self {
Self {
Expand Down

0 comments on commit 196daec

Please sign in to comment.