Browse Source

Small change in usage example

Viktor Söderqvist 10 years ago
parent
commit
4650b9a314
1 changed files with 2 additions and 4 deletions
  1. 2 4
      README.md

+ 2 - 4
README.md

@@ -30,11 +30,9 @@ Synopsis
 --------
 --------
 
 
 ```Erlang
 ```Erlang
-Opts = [{host, "localhost"}, {user, "foo"}, {password, "hello"},
-        {database, "test"}],
-
 %% Connect
 %% Connect
-{ok, Pid} = mysql:start_link(Opts),
+{ok, Pid} = mysql:start_link([{host, "localhost"}, {user, "foo"},
+                              {password, "hello"}, {database, "test"}]),
 
 
 %% Select
 %% Select
 {ok, ColumnNames, Rows} =
 {ok, ColumnNames, Rows} =