Skip to content

Commit 1e295b5

Browse files
Fix typo (#5625)
1 parent cdf0eb8 commit 1e295b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ post_id = 17
240240
"/users/42/posts/17"
241241
```
242242

243-
Verified routes also support the `Phoenix.Param` protocol, but we don't need to concern ourselves with elixir protocols just yet. Just know that once we start building our application with structs like `%User{}` and `%Post{}`, we'll be able to interpolate those data structures directly into our `~p` paths and phoenix will pluck out the correct fields to use in the route.
243+
Verified routes also support the `Phoenix.Param` protocol, but we don't need to concern ourselves with Elixir protocols just yet. Just know that once we start building our application with structs like `%User{}` and `%Post{}`, we'll be able to interpolate those data structures directly into our `~p` paths and Phoenix will pluck out the correct fields to use in the route.
244244

245245
```elixir
246246
~p"/users/#{user}/posts/#{post}"

0 commit comments

Comments
 (0)