Skip to content

Commit f6bcb65

Browse files
committed
docs: fix by proofreading
1 parent a24e4b6 commit f6bcb65

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ Specifying Route Handlers
8585
Controller's Namespace
8686
----------------------
8787

88-
When you specify a controller and method name as a string,
89-
if a controller name is stated without beginning with ``\``, the :ref:`routing-default-namespace` will be prepended:
88+
When you specify a controller and method name as a string, if a controller is
89+
written without a leading ``\``, the :ref:`routing-default-namespace` will be
90+
prepended:
9091

9192
.. literalinclude:: routing/063.php
9293

@@ -115,9 +116,9 @@ Or using ``use`` keyword:
115116
.. literalinclude:: routing/014.php
116117
:lines: 2-
117118

118-
If you forget ``use App\Controllers\Home;``, the controller classname is interpreted
119-
as ``Config\Home``, not ``App\Controllers\Home`` because **app/Config/Routes.php**
120-
has ``namespace Config;`` at the top.
119+
If you forget to add ``use App\Controllers\Home;``, the controller classname is
120+
interpreted as ``Config\Home``, not ``App\Controllers\Home`` because
121+
**app/Config/Routes.php** has ``namespace Config;`` at the top.
121122

122123
.. note:: When you use Array Callable Syntax, the classname is always interpreted
123124
as a fully qualified classname. So :ref:`routing-default-namespace` and

0 commit comments

Comments
 (0)