Skip to content

Commit

Permalink
small fix to guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mbway committed Nov 2, 2024
1 parent eac629e commit d0961fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/class/metaclass.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl MyMetaclass {
_args: Bound<'_, PyTuple>,
_kwargs: Option<Bound<'_, PyDict>>,
) -> PyResult<()> {
slf.as_any().setattr("some_var", 123)?;
slf.borrow_mut().counter = 5;
Ok(())
}

Expand Down

0 comments on commit d0961fe

Please sign in to comment.