summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/userguide/extension_types/c_property.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/userguide/extension_types/c_property.pyx b/docs/examples/userguide/extension_types/c_property.pyx
index a545398fe..b759ceec1 100644
--- a/docs/examples/userguide/extension_types/c_property.pyx
+++ b/docs/examples/userguide/extension_types/c_property.pyx
@@ -17,4 +17,4 @@ cdef extern from "complexobject.h":
def cprint(complex c):
- print(f"{c.real}+{c.imag}j") # uses C calls to the above property methods.
+ print(f"{c.real :.4f}{c.imag :+.4f}j") # uses C calls to the above property methods.