Merge pull request #371 from zaporozhets/fix_mistyping_in_comment

Fix mistype in comment
This commit is contained in:
Sergiu Deitsch 2018-10-23 21:42:15 +02:00 committed by GitHub
commit c4bada1876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1104,7 +1104,7 @@ namespace base_logging {
// buffer to allow for a '\n' and '\0'. // buffer to allow for a '\n' and '\0'.
class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf { class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf {
public: public:
// REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\n'. // REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\0'.
LogStreamBuf(char *buf, int len) { LogStreamBuf(char *buf, int len) {
setp(buf, buf + len - 2); setp(buf, buf + len - 2);
} }