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 punctuation and grammar issues in guides #4811

Merged
merged 2 commits into from May 3, 2022

Conversation

solar05
Copy link
Contributor

@solar05 solar05 commented May 1, 2022

Fix punctuation and grammar issues in guides

Copy link
Member

@Gazler Gazler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small changes required, other than that good to go.

@@ -211,7 +211,7 @@ When running a mix task later (after we have pushed the project to Heroku) you w
$ heroku run "POOL_SIZE=2 mix hello.task"
```

So that Ecto does not attempt to open more than the available connections.
So that, Ecto does not attempt to open more than the available connections.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a comma is required here.

@@ -61,7 +61,7 @@ In other words, to provide custom error pages, we could simply define a proper `

But we can do even better.

Phoenix generates an `ErrorView` for us, but it doesn't give us a `lib/hello_web/templates/error` directory. Let's create one now. Inside our new directory, let's add a template named`404.html.heex` and give it some markup – a mixture of our application layout and a new `<div>` with our message to the user.
Phoenix generates an `ErrorView` for us, but it doesn't give us a `lib/hello_web/templates/error` directory. Let's create one now. Inside our new directory, let's add a template named`404.html.eex` and give it some markup – a mixture of our application layout and a new `<div>` with our message to the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heex is correct here.

@@ -1,6 +1,6 @@
# Overview

Phoenix is a web development framework written in Elixir which implements the server-side Model View Controller (MVC) pattern. Many of its components and concepts will seem familiar to those of us with experience in other web frameworks like Ruby on Rails or Python's Django.
Phoenix is a web development framework written in Elixir which implements the server-side Model View Controller (MVC) pattern. Many of its components and concepts will seem familiar to those of us with experience in other web frameworks like, Ruby on Rails or Python's Django.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a comma here is correct.

@@ -22,8 +22,8 @@ The guides that you are currently looking at provide an overview of all parts th

* How-to's - a collection of articles on how to achieve certain things with Phoenix

If you would prefer to read these guides as an EPUB [click here!](Phoenix.epub)
If you preferred to read these guides as an EPUB, [click here!](Phoenix.epub)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer is correct.

@@ -404,11 +404,11 @@ defp put_user_token(conn, _) do
end
```

Now our `conn.assigns` contains the `current_user` and `user_token`.
Now, our `conn.assigns` contains the `current_user` and `user_token`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comma required here.


The `onSync` callback allows you to easily react to presence state changes, which most often results in re-rendering an updated list of active users. You can use the `list` method to format and return each individual presence based on the needs of your application.

To iterate users, we use the `presences.list()` function which accepts a callback. The callback will be called for each presence item with 2 arguments, the presence id and a list of metas (one for each presence for that presence id). We use this to display the users and the number of devices they are online with.
To iterate users, we use the `presences.list()` function which, accepts a callback. The callback will be called for each presence item with 2 arguments, the presence id and a list of metas (one for each presence for that presence id). We use this to display the users and the number of devices they are online with.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comma required here.

@Gazler Gazler merged commit dc712f0 into phoenixframework:master May 3, 2022
@Gazler
Copy link
Member

Gazler commented May 3, 2022

Thanks <3

chrismccord pushed a commit that referenced this pull request May 6, 2022
* Fixup grammar and punctuations issues

* Apply PR suggestions
ryansch pushed a commit to outstand/phoenix that referenced this pull request May 9, 2022
* Fixup grammar and punctuations issues

* Apply PR suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants