Skip to content

Commit cda0171

Browse files
committed
docs: fixup typo on object.md (#5143)
1 parent ec1a350 commit cda0171

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/src/class/object.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ To automatically generate the `__str__` implementation using a `Display` trait i
7777
# use pyo3::prelude::*;
7878
#
7979
# #[allow(dead_code)]
80-
# #[pyclass(str)]
81-
# struct Coordinate {
80+
#[pyclass(str)]
81+
struct Coordinate {
8282
x: i32,
8383
y: i32,
8484
z: i32,
@@ -104,8 +104,8 @@ For convenience, a shorthand format string can be passed to `str` as `str="<form
104104
# use pyo3::prelude::*;
105105
#
106106
# #[allow(dead_code)]
107-
# #[pyclass(str="({x}, {y}, {z})")]
108-
# struct Coordinate {
107+
#[pyclass(str="({x}, {y}, {z})")]
108+
struct Coordinate {
109109
x: i32,
110110
y: i32,
111111
z: i32,

0 commit comments

Comments
 (0)