Browse Source

Merge pull request #171 from hasegeli/typo

Fix typo on README
Sergey Prokhorov 6 years ago
parent
commit
d341f838c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -277,12 +277,12 @@ squery including final `{C, Ref, done}`.
 {ok, Columns, Rows}        = epgsql:prepared_query(C, StatementName, [Parameters]).
 {ok, Columns, Rows}        = epgsql:prepared_query(C, StatementName, [Parameters]).
 {ok, Count}                = epgsql:prepared_query(C, StatementName, [Parameters]).
 {ok, Count}                = epgsql:prepared_query(C, StatementName, [Parameters]).
 {ok, Count, Columns, Rows} = epgsql:prepared_query(C, StatementName, [Parameters]).
 {ok, Count, Columns, Rows} = epgsql:prepared_query(C, StatementName, [Parameters]).
-{error, Error}             = epgsql:prepared_equery(C, "non_existent_query", [Parameters]).
+{error, Error}             = epgsql:prepared_query(C, "non_existent_query", [Parameters]).
 ```
 ```
 `Parameters` - optional list of values to be bound to `$1`, `$2`, `$3`, etc.
 `Parameters` - optional list of values to be bound to `$1`, `$2`, `$3`, etc.
 `StatementName` - name of query given with ```erlang epgsql:parse(C, StatementName, "select ...", []).```
 `StatementName` - name of query given with ```erlang epgsql:parse(C, StatementName, "select ...", []).```
 
 
-With prepared query one can parse a query giving it a name with `epgsql:parse` on start and reuse the name 
+With prepared query one can parse a query giving it a name with `epgsql:parse` on start and reuse the name
 for all further queries with different parameters.
 for all further queries with different parameters.
 ```erlang
 ```erlang
 epgsql:parse(C, "inc", "select $1+1", []).
 epgsql:parse(C, "inc", "select $1+1", []).