diff --git a/doc/index.rst b/doc/index.rst index ae77a28b..19cbb2f7 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -26,9 +26,9 @@ namespace is often omitted in examples. .. doxygenclass:: fmt::BasicStringRef :members: -.. doxygenfunction:: fmt::str +.. doxygenfunction:: fmt::str(StringRef) -.. doxygenfunction:: fmt::c_str +.. doxygenfunction:: fmt::c_str(StringRef) Write API --------- diff --git a/format.h b/format.h index 6650bb11..febecdc9 100644 --- a/format.h +++ b/format.h @@ -1415,7 +1415,7 @@ template inline const Char *c_str(const BasicWriter &f) { return f.c_str(); } /** - Converts a string reference an `std::string`. + Converts a string reference to `std::string`. */ inline std::string str(StringRef s) { return std::string(s.c_str(), s.size());