Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix phx.gen.socket moduledoc grammar and example path #5769

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/mix/tasks/phx.gen.socket.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Mix.Tasks.Phx.Gen.Socket do

$ mix phx.gen.socket User

Accepts the module name for the socket
Accepts the module name for the socket.

The generated files will contain:

Expand All @@ -18,9 +18,9 @@ defmodule Mix.Tasks.Phx.Gen.Socket do
For an umbrella application:

* a client in `apps/my_app_web/assets/js`
* a socket in `apps/my_app_web/lib/app_name_web/channels`
* a socket in `apps/my_app_web/lib/my_app_web/channels`

You can then generated channels with `mix phx.gen.channel`.
You can then generate channels with `mix phx.gen.channel`.
"""
use Mix.Task

Expand Down