Remove ObjectProperties from example

This commit is contained in:
asonix 2020-05-15 20:17:03 -05:00
parent 4f4cec8fec
commit c260993225

View file

@ -163,13 +163,14 @@ compiletime.
If you want to make a function that manipulates an Activity, but not a normal object, you could
bound the function like so:
```rust
fn manipulator<T>(activity: T) -> Result<&mut ObjectProperties, SomeErrorType>
fn manipulator<T>(activity: T) -> Result<(), SomeErrorType>
where
T: Activity + BaseExt,
{
activity
.set_id("https://example.com".parse()?)
.set_context(context())
.set_context(context());
Ok(())
}
```