Fix typos
diff --git a/examples/hmac_api/README b/examples/hmac_api/README
index d69821a..2a71a75 100644
--- a/examples/hmac_api/README
+++ b/examples/hmac_api/README
@@ -53,7 +53,7 @@
- see https://github.com/tim/erlang-oauth
* an implementation of 3-legged OAUTH
-It is not suitable for use in applications where an end user has to log into a service and piggy-back on top of a keypair security system.
+It is not suitable for use in applications where an end user has to log into a service and piggy-back on top of a key pair security system.
THE CLIENT LIBRARY HERE IS **NOT** AN AMAZON CLIENT LIBRARY. AMAZON DOES FUNKY STUFF WITH HOSTNAMES AND PUSHES THEM ONTO THE URL IN CANONICALIZATION! THE CLIENT LIBRARY IS AMAZON-A-LIKE ENOUGH TO USE THE AMAZON DOCOS TO BUILD A TEST SUITE.
diff --git a/examples/hmac_api/hmac_api_lib.erl b/examples/hmac_api/hmac_api_lib.erl
index 1dae62d..74fb3f6 100644
--- a/examples/hmac_api/hmac_api_lib.erl
+++ b/examples/hmac_api/hmac_api_lib.erl
@@ -12,7 +12,7 @@
%%% sign/5 is used client-side to sign a request
%%% - it returns an HTTPAuthorization header
%%%
-%%% authorize_request/1 takes a mochiweb Request as an arguement
+%%% authorize_request/1 takes a mochiweb Request as an argument
%%% and checks that the request matches the signature
%%%
%%% get_api_keypair/0 creates a pair of public/private keys
diff --git a/src/mochiweb_session.erl b/src/mochiweb_session.erl
index f288560..bf7a589 100644
--- a/src/mochiweb_session.erl
+++ b/src/mochiweb_session.erl
@@ -38,7 +38,7 @@
%% TODO: Import this from elsewhere after attribute types refactor.
-type header() :: {string(), string()}.
-%% @doc Generates a secure encrypted binary convining all the parameters. The
+%% @doc Generates a secure encrypted binary combining all the parameters. The
%% expiration time must be a 32-bit integer.
-spec generate_session_data(
ExpirationTime :: expiration_time(),
diff --git a/src/mochiweb_util.erl b/src/mochiweb_util.erl
index 7102dd3..9c6ce2e 100644
--- a/src/mochiweb_util.erl
+++ b/src/mochiweb_util.erl
@@ -540,7 +540,7 @@
%%
%% The returned list of encodings is sorted, descendingly, according to the
%% Q values of the given list. The last element of this list is the given
-%% default encoding unless this encoding is explicitily or implicitily
+%% default encoding unless this encoding is explicitly or implicitily
%% marked with a Q value of 0.0 in the given Q values list.
%% Note: encodings with the same Q value are kept in the same order as
%% found in the input Q values list.
diff --git a/test/mochiweb_websocket_tests.erl b/test/mochiweb_websocket_tests.erl
index 5fd6273..ccd8519 100644
--- a/test/mochiweb_websocket_tests.erl
+++ b/test/mochiweb_websocket_tests.erl
@@ -142,7 +142,7 @@
0:1, %% Rsv1
0:1, %% Rsv2
0:1, %% Rsv3
- 1:4, %% Opcode, text frame (all mochiweb suports for now)
+ 1:4, %% Opcode, text frame (all mochiweb supports for now)
MsgSize:8, %% Expecting small size
SmallMessage/binary>> =
WsFrames,