Commit 089e54a0 authored by Victor Zverovich's avatar Victor Zverovich

Fix docs.

parent 660938fe
...@@ -26,9 +26,9 @@ namespace is often omitted in examples. ...@@ -26,9 +26,9 @@ namespace is often omitted in examples.
.. doxygenclass:: fmt::BasicStringRef .. doxygenclass:: fmt::BasicStringRef
:members: :members:
.. doxygenfunction:: fmt::str .. doxygenfunction:: fmt::str(StringRef)
.. doxygenfunction:: fmt::c_str .. doxygenfunction:: fmt::c_str(StringRef)
Write API Write API
--------- ---------
......
...@@ -1415,7 +1415,7 @@ template <typename Char> ...@@ -1415,7 +1415,7 @@ template <typename Char>
inline const Char *c_str(const BasicWriter<Char> &f) { return f.c_str(); } inline const Char *c_str(const BasicWriter<Char> &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) { inline std::string str(StringRef s) {
return std::string(s.c_str(), s.size()); return std::string(s.c_str(), s.size());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment