Correct minor formatting mistakes
This commit is contained in:
parent
7eae3eea0d
commit
1736575ee8
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ std::string Markov::regurgitate(int lines, std::string start)
|
||||||
{
|
{
|
||||||
// Not sure if it should return or just correct invalid input.
|
// Not sure if it should return or just correct invalid input.
|
||||||
// For now, just correct it.
|
// For now, just correct it.
|
||||||
if (lines<1) lines = 1;
|
if (lines < 1) lines = 1;
|
||||||
|
|
||||||
std::string answer = "";
|
std::string answer = "";
|
||||||
for (int i=0; i<lines; ++i) {
|
for (int i=0; i<lines; ++i) {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ void MarkovMatrix::reset(int length)
|
||||||
{
|
{
|
||||||
this->matrix.clear();
|
this->matrix.clear();
|
||||||
|
|
||||||
if (length>0) {
|
if (length > 0) {
|
||||||
this->length = length;
|
this->length = length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue