Skip to content

Commit 818d23c

Browse files
authored
Fix examples for route_prefix/2 (#6491)
1 parent 757f033 commit 818d23c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mix/phoenix/scope.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ defmodule Mix.Phoenix.Scope do
110110
111111
## Examples
112112
113-
scope_route_prefix("socket.assigns.current_scope", schema_with_scope)
113+
route_prefix("socket.assigns.current_scope", schema_with_scope)
114114
# => "/orgs/\#{socket.assigns.current_scope.organization.slug}"
115115
116-
scope_route_prefix("@current_scope", schema_with_scope)
116+
route_prefix("@current_scope", schema_with_scope)
117117
# => "/orgs/\#{@current_scope.organization.slug}"
118118
119-
scope_route_prefix("scope", schema_with_scope)
119+
route_prefix("scope", schema_with_scope)
120120
# => "/orgs/\#{scope.organization.slug}"
121121
"""
122122
def route_prefix(

0 commit comments

Comments
 (0)