diff --git a/framework/yii/data/Pagination.php b/framework/yii/data/Pagination.php
index 9496795..8d4c067 100644
--- a/framework/yii/data/Pagination.php
+++ b/framework/yii/data/Pagination.php
@@ -33,7 +33,7 @@ use yii\base\Object;
  *         ->limit($pages->limit)
  *         ->all();
  *
- *     $this->render('index', array(
+ *     return $this->render('index', array(
  *          'models' => $models,
  *          'pages' => $pages,
  *     ));
diff --git a/framework/yii/data/Sort.php b/framework/yii/data/Sort.php
index a46d0ce..8201ba5 100644
--- a/framework/yii/data/Sort.php
+++ b/framework/yii/data/Sort.php
@@ -38,7 +38,7 @@ use yii\helpers\Html;
  *         ->orderBy($sort->orders)
  *         ->all();
  *
- *     $this->render('index', array(
+ *     return $this->render('index', array(
  *          'models' => $models,
  *          'sort' => $sort,
  *     ));