Fix documentation.

GitOrigin-RevId: 9c5b310b278d35ae7e408b03f5c52d17247174d9
This commit is contained in:
levlam 2020-10-01 19:39:58 +03:00
parent ad2f6d8168
commit 1169365710
2 changed files with 4 additions and 1 deletions

View File

@ -136,6 +136,9 @@ abstract class TlDocumentationGenerator
$this->printError('Wrong description begin');
}
if (preg_match('/[^ ]@/', $description)) {
$this->printError("Wrong documentation '@' usage: $description");
}
$docs = explode('@', $description);
array_shift($docs);
$info = array();