Skip to content

Commit

Permalink
Change "publically" to "publicly" in the routing docs (#52966)
Browse files Browse the repository at this point in the history
### What and why?

The word "publicly" should be spelled consistently across the documentation. It is spelled currently as "publically" in a few places.

### How?

Fixed the spelling!
  • Loading branch information
cassidoo committed Jul 20, 2023
1 parent a96a9b0 commit 7a0297c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ In the `app` directory, [nested folder hierarchy](/docs/app/building-your-applic

Each folder represents a route segment that is mapped to a corresponding segment in a URL path.

However, even though route structure is defined through folders, a route is **not publically accessible** until a `page.js` or `route.js` file is added to a route segment.
However, even though route structure is defined through folders, a route is **not publicly accessible** until a `page.js` or `route.js` file is added to a route segment.

<Image
alt="A diagram showing how a route is not publically accessible until a page.js or route.js file is added to a route segment."
alt="A diagram showing how a route is not publicly accessible until a page.js or route.js file is added to a route segment."
srcLight="/docs/light/project-organization-not-routable.png"
srcDark="/docs/dark/project-organization-not-routable.png"
width="1600"
height="444"
/>

And, even when a route is made publically accessible, only the **content returned** by `page.js` or `route.js` is sent to the client.
And, even when a route is made publicly accessible, only the **content returned** by `page.js` or `route.js` is sent to the client.

<Image
alt="A diagram showing how page.js and route.js files make routes publically accessible."
alt="A diagram showing how page.js and route.js files make routes publicly accessible."
srcLight="/docs/light/project-organization-routable.png"
srcDark="/docs/dark/project-organization-routable.png"
width="1600"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ In a nested route, the components of a segment will be nested **inside** the com

In addition to special files, you have the option to colocate your own files (e.g. components, styles, tests, etc) inside folders in the `app` directory.

This is because while folders define routes, only the contents returned by `page.js` or `route.js` are publically addressable.
This is because while folders define routes, only the contents returned by `page.js` or `route.js` are publicly addressable.

<Image
alt="An example folder structure with colocated files"
Expand Down

0 comments on commit 7a0297c

Please sign in to comment.