diff --git a/lib/mix/tasks/compile/phoenix_live_view.ex b/lib/mix/tasks/compile/phoenix_live_view.ex index 1269de6d40..8aabe58fa3 100644 --- a/lib/mix/tasks/compile/phoenix_live_view.ex +++ b/lib/mix/tasks/compile/phoenix_live_view.ex @@ -20,9 +20,9 @@ defmodule Mix.Tasks.Compile.PhoenixLiveView do {:noop, diagnostics} -> {:noop, diagnostics} - {status, dignostics} -> + {status, diagnostics} -> compile() - {status, dignostics} + {status, diagnostics} end) :noop diff --git a/lib/phoenix_component.ex b/lib/phoenix_component.ex index e6469cb9ed..3840742307 100644 --- a/lib/phoenix_component.ex +++ b/lib/phoenix_component.ex @@ -702,7 +702,7 @@ defmodule Phoenix.Component do * `false` or `nil` - if a value is `false` or `nil`, the attribute is omitted. Note the `class` and `style` attributes will be rendered as empty strings, - instead of ommitted, which has the same effect as not rendering them, but + instead of omitted, which has the same effect as not rendering them, but allows for rendering optimizations. * `list` (only for the `class` attribute) - each element of the list is processed diff --git a/lib/phoenix_live_view.ex b/lib/phoenix_live_view.ex index 0d8578a469..36275a9e86 100644 --- a/lib/phoenix_live_view.ex +++ b/lib/phoenix_live_view.ex @@ -1050,7 +1050,7 @@ defmodule Phoenix.LiveView do all state will be discarded. Calling redirect shuts down the LiveView channel. If you need - to programatically open an external link without causing the + to programmatically open an external link without causing the LiveView to shut down, for example because of `mailto:` or `tel:` URL schemes, consider using `push_event/3` with a custom client-side handler instead. @@ -1229,7 +1229,7 @@ defmodule Phoenix.LiveView do }) ``` - By computing the parameters with a function, reconnections will reevalute + By computing the parameters with a function, reconnections will reevaluate the code, allowing you to fetch the latest data. On the LiveView, you will use `get_connect_params/1` to read the data, diff --git a/lib/phoenix_live_view/tag_engine/compiler.ex b/lib/phoenix_live_view/tag_engine/compiler.ex index 3ebf1b5347..3c478a3f83 100644 --- a/lib/phoenix_live_view/tag_engine/compiler.ex +++ b/lib/phoenix_live_view/tag_engine/compiler.ex @@ -187,7 +187,7 @@ defmodule Phoenix.LiveView.TagEngine.Compiler do # This handles the case where the start expression is immediately followed # by a middle expression, since we don't want to generate # case @status do __EEX__(0); :connecting -> __EEX__(1) ... - # (we nened to skip adding the first placeholder) + # (we need to skip adding the first placeholder) # and instead generate # case @status do :connecting -> __EEX__(0); ... {quoted, acc_expr <> newlines <> " " <> clause_expr, clause_line} diff --git a/lib/phoenix_live_view/test/dom.ex b/lib/phoenix_live_view/test/dom.ex index 0e6a17dd3d..d5f85e3dbc 100644 --- a/lib/phoenix_live_view/test/dom.ex +++ b/lib/phoenix_live_view/test/dom.ex @@ -287,7 +287,7 @@ defmodule Phoenix.LiveViewTest.DOM do # All inputs including buttons # Remove the named inputs first to remove any possible - # duplicates if the child inputs also had a form attribite. + # duplicates if the child inputs also had a form attribute. (form_inputs -- named_inputs) ++ named_inputs _ -> diff --git a/lib/phoenix_live_view/test/live_view_test.ex b/lib/phoenix_live_view/test/live_view_test.ex index b919e16a9f..236c3675a7 100644 --- a/lib/phoenix_live_view/test/live_view_test.ex +++ b/lib/phoenix_live_view/test/live_view_test.ex @@ -1896,7 +1896,7 @@ defmodule Phoenix.LiveViewTest do Performs a live redirect from one LiveView to another. When redirecting between two LiveViews of the same `live_session`, - mounts the new LiveView and shutsdown the previous one, which + mounts the new LiveView and shuts down the previous one, which mimics general browser live navigation behaviour. When attempting to navigate from a LiveView of a different diff --git a/lib/phoenix_live_view/upload.ex b/lib/phoenix_live_view/upload.ex index f7bdd86d23..c4a2d47c55 100644 --- a/lib/phoenix_live_view/upload.ex +++ b/lib/phoenix_live_view/upload.ex @@ -116,7 +116,7 @@ defmodule Phoenix.LiveView.Upload do @doc """ Updates the entry progress. - Progress is either an integer percently between 0 and 100, or a map + Progress is either an integer percentage between 0 and 100, or a map with an `"error"` key containing the information for a failed upload while in progress on the client. """ diff --git a/lib/phoenix_live_view/upload_config.ex b/lib/phoenix_live_view/upload_config.ex index c7e88244eb..c1667261d2 100644 --- a/lib/phoenix_live_view/upload_config.ex +++ b/lib/phoenix_live_view/upload_config.ex @@ -180,7 +180,7 @@ defmodule Phoenix.LiveView.UploadConfig do raise ArgumentError, """ invalid :external value provided to allow_upload. - Only an anymous function receiving the socket as an argument is supported. Got: + Only an anonymous function receiving the socket as an argument is supported. Got: #{inspect(other)} """