Correct minor formatting mistakes

This commit is contained in:
Joscha 2016-11-03 23:04:46 +00:00
parent 7eae3eea0d
commit 1736575ee8
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ std::string Markov::regurgitate(int lines, std::string start)
{
// Not sure if it should return or just correct invalid input.
// For now, just correct it.
if (lines<1) lines = 1;
if (lines < 1) lines = 1;
std::string answer = "";
for (int i=0; i<lines; ++i) {

View file

@ -31,7 +31,7 @@ void MarkovMatrix::reset(int length)
{
this->matrix.clear();
if (length>0) {
if (length > 0) {
this->length = length;
}
}