فهرست منبع

Correct data type for routes in readme

Andy Baugh 1 سال پیش
والد
کامیت
730ac827f9
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Readme.md

+ 2 - 1
Readme.md

@@ -33,7 +33,7 @@ All passed routing modules will be required, and combined to form a routing tabl
 
 Routing Modules look like so:
 ```
-our %routes = (
+our @routes = (
     '/foo/(\w+)/save' => {
         method    => 'GET',
         callbacks => { # Run these subroutines to execute the appropriate handler given the content-type.  Expects normal PSGI output.
@@ -51,6 +51,7 @@ our %routes = (
     ...
 );
 ```
+Note that this is an array, as we want this to preserve order. Fat commas are used to hint that this is in fact a tuple.
 
 Router callbacks are passed the TPSGI object and the raw query, which means you can do: