diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp
index 32b0faeadc63..92c53f64a58b 100644
--- a/src/libcamera/geometry.cpp
+++ b/src/libcamera/geometry.cpp
@@ -269,7 +269,7 @@ bool operator<(const Size &lhs, const Size &rhs)
 /**
  * \brief Test if a size is contained in the range
  * \param[in] size Size to check
- * \returns True if \a size is contained in the range
+ * \return True if \a size is contained in the range
  */
 bool SizeRange::contains(const Size &size) const
 {
diff --git a/src/libcamera/utils.cpp b/src/libcamera/utils.cpp
index fc6a174d80f2..f5d4b10f34b5 100644
--- a/src/libcamera/utils.cpp
+++ b/src/libcamera/utils.cpp
@@ -57,7 +57,7 @@ const char *basename(const char *path)
  * avoid vulnerabilities that could occur if set-user-ID or set-group-ID
  * programs accidentally trust the environment.
  *
- * \returns A pointer to the value in the environment or NULL if the requested
+ * \return A pointer to the value in the environment or NULL if the requested
  * environment variable doesn't exist or if secure execution is required.
  */
 char *secure_getenv(const char *name)
