Skip to content

Commit b91ac9f

Browse files
committed
docs: replace segment with (:segment)
Make it more precise.
1 parent 66c5883 commit b91ac9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/incoming/restful.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ the controller that should be used::
7070
Change the Placeholder Used
7171
---------------------------
7272

73-
By default, the ``segment`` placeholder is used when a resource ID is needed. You can change this by passing
73+
By default, the ``(:segment)`` placeholder is used when a resource ID is needed. You can change this by passing
7474
in the ``placeholder`` option with the new string to use::
7575

7676
$routes->resource('photos', ['placeholder' => '(:num)']);
@@ -175,7 +175,7 @@ the controller that should be used::
175175
Change the Placeholder Used
176176
---------------------------
177177

178-
By default, the ``segment`` placeholder is used when a resource ID is needed. You can change this by passing
178+
By default, the ``(:segment)`` placeholder is used when a resource ID is needed. You can change this by passing
179179
in the ``placeholder`` option with the new string to use::
180180

181181
$routes->presenter('photos', ['placeholder' => '(:num)']);

0 commit comments

Comments
 (0)