tutorial/1: Fix unclosed ```rust block

Fixes: 4829e31 ("tutorial: Update for subclassing API changes")
This commit is contained in:
Marijn Suijten 2021-01-02 17:14:27 +01:00
parent 817a4710f3
commit d36218fe35

View file

@ -185,6 +185,7 @@ impl ObjectSubclass for Rgb2Gray {
}
}
```
This defines a struct `Rgb2Gray` which is empty for now and an empty implementation of the struct which will later be used. The `ObjectSubclass` trait is implemented on the struct `Rgb2Gray` for providing static information about the type to the type system. By implementing `ObjectSubclass` we allow registering our struct with the GObject object system.