Fix formatting

This commit is contained in:
Victor Zverovich
2015-03-01 20:58:45 -08:00
parent efc42fbd4e
commit 103530d407

View File

@@ -2165,15 +2165,19 @@ class BasicMemoryWriter : public BasicWriter<Char> {
#if FMT_USE_RVALUE_REFERENCES #if FMT_USE_RVALUE_REFERENCES
/** /**
\rst
Constructs a :class:`fmt::BasicMemoryWriter` object moving the content Constructs a :class:`fmt::BasicMemoryWriter` object moving the content
of the other object to it. of the other object to it.
\endrst
*/ */
BasicMemoryWriter(BasicMemoryWriter &&other) BasicMemoryWriter(BasicMemoryWriter &&other)
: BasicWriter<Char>(buffer_), buffer_(std::move(other.buffer_)) { : BasicWriter<Char>(buffer_), buffer_(std::move(other.buffer_)) {
} }
/** /**
\rst
Moves the content of the other ``BasicMemoryWriter`` object to this one. Moves the content of the other ``BasicMemoryWriter`` object to this one.
\endrst
*/ */
BasicMemoryWriter &operator=(BasicMemoryWriter &&other) { BasicMemoryWriter &operator=(BasicMemoryWriter &&other) {
buffer_ = std::move(other.buffer_); buffer_ = std::move(other.buffer_);
@@ -2191,7 +2195,7 @@ typedef BasicMemoryWriter<wchar_t> WMemoryWriter;
into a fixed-size array. For writing into a dynamically growing buffer into a fixed-size array. For writing into a dynamically growing buffer
use :class:`fmt::BasicMemoryWriter`. use :class:`fmt::BasicMemoryWriter`.
Any write method will throw std::runtime_error if the output doesn't fit Any write method will throw ``std::runtime_error`` if the output doesn't fit
into the array. into the array.
You can use one of the following typedefs for common character types: You can use one of the following typedefs for common character types: