Skip to content

Commit

Permalink
Fix typos (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng authored Nov 29, 2021
1 parent 560f2c7 commit c0506c7
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion include/http2.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
| ?FLAG_PADDED
| ?FLAG_PRIORITY.

%% These are macros because they're used in guards alot
%% These are macros because they're used in guards a lot
-define(IS_FLAG(Flags, Flag), Flags band Flag =:= Flag).
-define(NOT_FLAG(Flags, Flag), Flags band Flag =/= Flag).

Expand Down
2 changes: 1 addition & 1 deletion src/h2_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ handle_event(_, {send_body, StreamId, Body, Opts},
}};
idle ->
%% Sending DATA frames on an idle stream? It's a
%% Connection level protocol error on reciept, but If we
%% Connection level protocol error on receipt, but If we
%% have no active stream what can we even do?
{keep_state, Conn};
closed ->
Expand Down
2 changes: 1 addition & 1 deletion src/h2_frame.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{ok, payload(), Remainder::binary()}
| {error, stream_id(), error_code(), binary()}.

%% For io:formating
%% For io:formatting
-callback format(payload()) -> iodata().

%% convert payload to binary
Expand Down
8 changes: 4 additions & 4 deletions src/h2_stream_set.erl
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
% Data that is in queue to send on this stream, if flow control
% hasn't allowed it to be sent yet
queued_data :: undefined | done | binary(),
% Has the body been completely recieved.
% Has the body been completely received.
body_complete = false :: boolean(),
trailers = undefined :: [h2_frame:frame()] | undefined
}).
-type active_stream() :: #active_stream{}.

%% The closed_stream record is way more important to a client than a
%% server. It's a way of holding on to a response that has been
%% recieved, but not processed by the client yet.
%% received, but not processed by the client yet.
-record(
closed_stream, {
id :: stream_id(),
Expand All @@ -113,7 +113,7 @@
-type idle_stream() :: #idle_stream{}.

%% So a stream can be any of these things. And it will be something
%% that you can pass back into serveral functions here in this module.
%% that you can pass back into several functions here in this module.
-type stream() :: active_stream()
| closed_stream()
| idle_stream().
Expand Down Expand Up @@ -678,7 +678,7 @@ s_send_what_we_can(SWS, MFS, #active_stream{}=Stream) ->
%% We're coming in here with three numbers we need to look at:
%% * Connection send window size
%% * Stream send window size
%% * Maximimum frame size
%% * Maximum frame size

%% If none of them are zero, we have to send something, so we're
%% going to figure out what's the biggest number we can send. If
Expand Down
2 changes: 1 addition & 1 deletion test/client_server_SUITE_data/css/theme/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Dependencies

Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceding: https://github.com/hakimel/reveal.js#full-setup
Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceeding: https://github.com/hakimel/reveal.js#full-setup

## Creating a Theme

Expand Down
4 changes: 2 additions & 2 deletions test/client_server_SUITE_data/js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
// Dispatches all reveal.js events to the parent window through postMessage
postMessageEvents: false,

// Focuses body when page changes visiblity to ensure keyboard shortcuts work
// Focuses body when page changes visibility to ensure keyboard shortcuts work
focusBodyOnPageVisibilityChange: true,

// Transition style
Expand Down Expand Up @@ -4666,7 +4666,7 @@
}
},

// Programatically triggers a keyboard event
// Programmatically triggers a keyboard event
triggerKey: function( keyCode ) {
onDocumentKeyDown( { keyCode: keyCode } );
}
Expand Down
6 changes: 3 additions & 3 deletions test/http2c.erl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ start_link() ->

%% Three API levels:
%% 1: lowest: Send a frame or set of frames
%% 2: middle: Here's some hastily constucted frames, do some setup of frame header flags.
%% 2: middle: Here's some hastily constructed frames, do some setup of frame header flags.
%% 3: highest: a semantic http request: **NOT IMPLEMENTED HERE*

%% send_binary/2 is the lowest level API. It just puts bits on the
Expand All @@ -64,8 +64,8 @@ send_binary(Pid, Binary) ->

%% send_unaltered_frames is the raw version of the middle level. You
%% can put frames directly as constructed on the wire. This is
%% desgined for testing error conditions by giving you the freedom to
%% create bad sets of frames. This will problably only be exported
%% designed for testing error conditions by giving you the freedom to
%% create bad sets of frames. This will probably only be exported
%% ifdef(TEST)
-spec send_unaltered_frames(pid(), [h2_frame:frame()]) -> ok.
send_unaltered_frames(Pid, Frames) ->
Expand Down

0 comments on commit c0506c7

Please sign in to comment.