浏览代码

Connection parameters are not the focus of the client options example.

Daniele Alessandri 10 年之前
父节点
当前提交
cc51db9009
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -113,11 +113,11 @@ it is recommended to refer to their specific documentation or implementation for
 ### Client configuration ###
 
 Various aspects of the client can be configured simply by passing options to the second argument of
-`Predis\Client::__construct()`.
+`Predis\Client::__construct()`:
 
 ```php
 $client = new \Predis\Client(
-    ['database' => 2],
+    $connection_parameters,
     ['profile' => '2.8', 'prefix' => 'sample:']
 );
 ```