Browse Source

Fix typos

Сергей Прохоров 8 years ago
parent
commit
9eee9e9da5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      README.md
  2. 2 2
      src/epgsql.erl

+ 2 - 2
README.md

@@ -489,10 +489,10 @@ Message formats:
 
 `epgsql{a,i}:get_cmd_status(C) -> undefined | atom() | {atom(), integer()}`
 
-This function returns last executed command's status information. It's usualy
+This function returns the last executed command's status information. It's usualy
 the name of SQL command and, for some of them (like UPDATE or INSERT) the
 number of affected rows. See [libpq PQcmdStatus](https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQCMDSTATUS).
-But there is one interesting case: if you execute `COMMIT` on failed transaction,
+But there is one interesting case: if you execute `COMMIT` on a failed transaction,
 status will be `rollback`, not `commit`.
 This is how you can detect failed transactions:
 

+ 2 - 2
src/epgsql.erl

@@ -190,8 +190,8 @@ set_notice_receiver(C, PidOrName) ->
     epgsql_sock:set_notice_receiver(C, PidOrName).
 
 %% @doc Returns last command status message
-%% If multiple queries was executed using `squery/2', separated by semicolon,
-%% only last query's status will be available.
+%% If multiple queries were executed using `squery/2', separated by semicolon,
+%% only the last query's status will be available.
 %% See https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQCMDSTATUS
 -spec get_cmd_status(connection()) -> {ok, Status}
                                           when