From 66bad45aa3a526453891ef7072e55f4dc2981b45 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 3 Apr 2022 19:28:55 +0800 Subject: [PATCH] Fix typos --- README.md | 4 ++-- src/boss_compiler.erl | 2 +- src/boss_db.erl | 2 +- src/boss_db_pmod_pt.erl | 4 ++-- src/db_adapters/boss_db_adapter_dynamodb.erl | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ebd2e8ce..549200ef 100644 --- a/README.md +++ b/README.md @@ -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 = [ @@ -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 diff --git a/src/boss_compiler.erl b/src/boss_compiler.erl index 3d9b485d..6b3c7542 100644 --- a/src/boss_compiler.erl +++ b/src/boss_compiler.erl @@ -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]}; diff --git a/src/boss_db.erl b/src/boss_db.erl index dd0526f3..cd975dbd 100644 --- a/src/boss_db.erl +++ b/src/boss_db.erl @@ -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). diff --git a/src/boss_db_pmod_pt.erl b/src/boss_db_pmod_pt.erl index 33b3acbb..02a759a9 100644 --- a/src/boss_db_pmod_pt.erl +++ b/src/boss_db_pmod_pt.erl @@ -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 diff --git a/src/db_adapters/boss_db_adapter_dynamodb.erl b/src/db_adapters/boss_db_adapter_dynamodb.erl index ed1f65ad..4c98d87f 100644 --- a/src/db_adapters/boss_db_adapter_dynamodb.erl +++ b/src/db_adapters/boss_db_adapter_dynamodb.erl @@ -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