Skip to content

Commit ffd60ef

Browse files
committed
Merge branch 'typo-in-scene-docs' of https://github.com/tapickell/scenic into tapickell-typo-in-scene-docs
2 parents 19f48b3 + 7ddb3b9 commit ffd60ef

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/scenic/scene.ex

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ defmodule Scenic.Scene do
7575
them at compile time has two advantages
7676
7777
1. Performance: It is clearly faster to build the graph once during
78-
build time to to build it repeatedly during runtime.
78+
build time then to build it repeatedly during runtime.
7979
2. Error checking: If your graph has an error in it, it is much
8080
better to have it stop compilation than cause an error during runtime.
8181
@@ -95,7 +95,7 @@ defmodule Scenic.Scene do
9595
child scenes. This allows for strong code reuse, isolates knowledge
9696
and logic to just the pieces that need it, and keeps the size of any
9797
given graph to a reasonable size. For example, The graph
98-
hand handlers of a check-box don't need to know anything about
98+
handlers of a check-box don't need to know anything about
9999
how a slider works, even though they are both used in the same
100100
parent scene. At best, they only need to know that they
101101
both conform to the `Component.Input` behavior, and can thus
@@ -195,10 +195,10 @@ defmodule Scenic.Scene do
195195
to the cursor input, the text field captures text input (and
196196
maybe transforms its graph to show that it is selected).
197197
198-
Captured input types are should be released when no longer
198+
Captured input types should be released when no longer
199199
needed so that normal operation can resume.
200200
201-
The input messages re not passed on to other scene if
201+
The input messages are passed on to other scene if
202202
the first one doesn't handle it.
203203
204204
## Event Filtering
@@ -214,7 +214,7 @@ defmodule Scenic.Scene do
214214
it either then the event is dropped.
215215
216216
To handle events, you add `filter_event/3` functions to your scene.
217-
This function handle the event, and stop its progress backwards
217+
This function handles the event, and stop its progress backwards
218218
up the graph. It can handle it and allow it to continue up the
219219
graph. Or it can transform the event and pass the transformed
220220
version up the graph.
@@ -948,7 +948,7 @@ defmodule Scenic.Scene do
948948
ViewPort.set_root(vp, {Scenic.Scenes.Error, {msgs, scene_module, args}})
949949
end
950950

951-
# purposefully slow down the reply in the event of a crash. Just in
951+
# purposefully slow down the reply in the event of a crash. Just in
952952
# case it does go into a crazy loop
953953
# Process.sleep(400)
954954
{:noreply, state}
@@ -1027,7 +1027,7 @@ defmodule Scenic.Scene do
10271027
{:stop, sc_state} ->
10281028
IO.puts("""
10291029
#{IO.ANSI.yellow()}
1030-
Deprecated handle_input :stop return in #{inspect(mod)}
1030+
Deprecated handle_input :stop return in #{inspect(mod)}
10311031
Please return {:halt, state} instead
10321032
This resolves a naming conflict with the newer GenServer return values
10331033
#{IO.ANSI.default_color()}
@@ -1038,7 +1038,7 @@ defmodule Scenic.Scene do
10381038
{:stop, sc_state, opts} ->
10391039
IO.puts("""
10401040
#{IO.ANSI.yellow()}
1041-
Deprecated handle_input :stop return in #{inspect(mod)}
1041+
Deprecated handle_input :stop return in #{inspect(mod)}
10421042
Please return {:halt, state} instead
10431043
This resolves a naming conflict with the newer GenServer return values
10441044
#{IO.ANSI.default_color()}
@@ -1049,7 +1049,7 @@ defmodule Scenic.Scene do
10491049
{:continue, sc_state} ->
10501050
IO.puts("""
10511051
#{IO.ANSI.yellow()}
1052-
Deprecated handle_input :continue return in #{inspect(mod)}
1052+
Deprecated handle_input :continue return in #{inspect(mod)}
10531053
Please return {:cont, state} instead
10541054
This resolves a naming conflict with the newer GenServer return values
10551055
#{IO.ANSI.default_color()}
@@ -1061,7 +1061,7 @@ defmodule Scenic.Scene do
10611061
{:continue, sc_state, opts} ->
10621062
IO.puts("""
10631063
#{IO.ANSI.yellow()}
1064-
Deprecated handle_input :continue return in #{inspect(mod)}
1064+
Deprecated handle_input :continue return in #{inspect(mod)}
10651065
Please return {:cont, state} instead
10661066
This resolves a naming conflict with the newer GenServer return values
10671067
#{IO.ANSI.default_color()}
@@ -1105,7 +1105,7 @@ defmodule Scenic.Scene do
11051105
{:stop, sc_state} ->
11061106
IO.puts("""
11071107
#{IO.ANSI.yellow()}
1108-
Deprecated filter_event :stop return in #{inspect(mod)}
1108+
Deprecated filter_event :stop return in #{inspect(mod)}
11091109
Please return {:halt, state} instead
11101110
This resolves a naming conflict with the newer GenServer return values
11111111
#{IO.ANSI.default_color()}
@@ -1116,7 +1116,7 @@ defmodule Scenic.Scene do
11161116
{:stop, sc_state, opts} ->
11171117
IO.puts("""
11181118
#{IO.ANSI.yellow()}
1119-
Deprecated filter_event :stop return in #{inspect(mod)}
1119+
Deprecated filter_event :stop return in #{inspect(mod)}
11201120
Please return {:halt, state} instead
11211121
This resolves a naming conflict with the newer GenServer return values
11221122
#{IO.ANSI.default_color()}
@@ -1127,7 +1127,7 @@ defmodule Scenic.Scene do
11271127
{:continue, event, sc_state} ->
11281128
IO.puts("""
11291129
#{IO.ANSI.yellow()}
1130-
Deprecated filter_event :continue return in #{inspect(mod)}
1130+
Deprecated filter_event :continue return in #{inspect(mod)}
11311131
Please return {:cont, state} instead
11321132
This resolves a naming conflict with the newer GenServer return values
11331133
#{IO.ANSI.default_color()}
@@ -1139,7 +1139,7 @@ defmodule Scenic.Scene do
11391139
{:continue, event, sc_state, opts} ->
11401140
IO.puts("""
11411141
#{IO.ANSI.yellow()}
1142-
Deprecated filter_event :continue return in #{inspect(mod)}
1142+
Deprecated filter_event :continue return in #{inspect(mod)}
11431143
Please return {:cont, state} instead
11441144
This resolves a naming conflict with the newer GenServer return values
11451145
#{IO.ANSI.default_color()}

0 commit comments

Comments
 (0)