mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +00:00
Fix docs.
This commit is contained in:
parent
660938fe4d
commit
089e54a09b
@ -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
|
||||
---------
|
||||
|
2
format.h
2
format.h
@ -1415,7 +1415,7 @@ template <typename Char>
|
||||
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) {
|
||||
return std::string(s.c_str(), s.size());
|
||||
|
Loading…
Reference in New Issue
Block a user