Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Usage
-----
```erlang
boss_db:start(DBOptions),
boss_cache:start(CacheOptions), % If you want cacheing with Memcached
boss_cache:start(CacheOptions), % If you want caching with Memcached
boss_news:start() % Mandatory! Hopefully will be optional one day

DBOptions = [
Expand Down Expand Up @@ -114,7 +114,7 @@ Then compile it like:

...and you're ready to go.

You can also enable boss_db_rebar plugin in your rebar.config to automatize
You can also enable boss_db_rebar plugin in your rebar.config to automate
compilation:

```erlang
Expand Down
2 changes: 1 addition & 1 deletion src/boss_compiler.erl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ otp_version() ->

make_forms_by_version(NewForms, Version) when Version >= 16->
% OTP Version starting with R16A needs boss_db_pmod_pt
% boss_db_pmod_pt needs the form to end with {eof, 0} tagged tupple
% boss_db_pmod_pt needs the form to end with {eof, 0} tagged tuple
NewForms1 = NewForms ++ [{eof,0}],
% boss_db_pmod_pt needs the form to be in "new" format
{erl_syntax:revert_forms(erl_syntax:revert(NewForms1)), [boss_db_pmod_pt, boss_db_pt]};
Expand Down
2 changes: 1 addition & 1 deletion src/boss_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ find(Type, Conditions, Options, Timeout) ->
find_by_sql(Type, Sql) when is_list(Sql) ->
find_by_sql(Type, Sql, []).

-spec(find_by_sql(Type::atom(), Sql::string(), Parmeters::list()) -> [BossRecord::tuple()]).
-spec(find_by_sql(Type::atom(), Sql::string(), Parameters::list()) -> [BossRecord::tuple()]).
find_by_sql(Type, Sql, Parameters) when is_list(Sql), is_list(Parameters) ->
db_call({find_by_sql, Type, Sql, Parameters}, ?DEFAULT_TIMEOUT).

Expand Down
4 changes: 2 additions & 2 deletions src/boss_db_pmod_pt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
%%
%% * Record definitions are still present and must be handled.
%%
%% * (Syntatic) local calls may actually be calls to an imported
%% funtion or a BIF. It is a local call if and only if there
%% * (Syntactic) local calls may actually be calls to an imported
%% function or a BIF. It is a local call if and only if there
%% is a definition for the function in the module.
%%
%% * When we introduce the module parameters and 'THIS' in each
Expand Down
2 changes: 1 addition & 1 deletion src/db_adapters/boss_db_adapter_dynamodb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ init(Options) ->
application:start(ibrowse),


%% init initial credentials. note that these will be refeshed automatically as needed
%% init initial credentials. note that these will be refreshed automatically as needed
ddb_iam:credentials(AccessKey, SecretKey),
{'ok', Key, Secret, Token} = ddb_iam:token(129600),
%% 129600 is the lifetime duration for the token
Expand Down