From c6055c03f142aa3aec71c54659bf3ddf6aecebd5 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 2 May 2022 11:12:19 -0600 Subject: [PATCH] fixed comment in string.rs --- src/types/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/string.rs b/src/types/string.rs index 89a6e8b9..d195f1d2 100644 --- a/src/types/string.rs +++ b/src/types/string.rs @@ -187,7 +187,7 @@ impl PyString { let utf8_slice = { cfg_if::cfg_if! { if #[cfg(any(Py_3_10, not(Py_LIMITED_API)))] { - // PyUnicode_AsUTF8AndSize only available on limited API before 3.10. + // PyUnicode_AsUTF8AndSize only available on limited API starting with 3.10. let mut size: ffi::Py_ssize_t = 0; let data = unsafe { ffi::PyUnicode_AsUTF8AndSize(self.as_ptr(), &mut size) }; if data.is_null() {