diff --git a/README.md b/README.md index 7de3244..efb020e 100644 --- a/README.md +++ b/README.md @@ -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(activity: T) -> Result<&mut ObjectProperties, SomeErrorType> +fn manipulator(activity: T) -> Result<(), SomeErrorType> where T: Activity + BaseExt, { activity .set_id("https://example.com".parse()?) - .set_context(context()) + .set_context(context()); + Ok(()) } ```