Skip to content

Commit d0961fe

Browse files
committed
small fix to guide
1 parent eac629e commit d0961fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/src/class/metaclass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl MyMetaclass {
3030
_args: Bound<'_, PyTuple>,
3131
_kwargs: Option<Bound<'_, PyDict>>,
3232
) -> PyResult<()> {
33-
slf.as_any().setattr("some_var", 123)?;
33+
slf.borrow_mut().counter = 5;
3434
Ok(())
3535
}
3636

0 commit comments

Comments
 (0)