From 36de480a7303dfe516bcf25b74c471c6d722cda3 Mon Sep 17 00:00:00 2001 From: Gurinder Singh Date: Sun, 28 Oct 2018 08:24:05 +0530 Subject: [PATCH] Fixed the location of a parenthetical comment The explanation in the parentheses was for the PATH not the QUERY portion. Therefore I moved that explanation next to the mention of PATH. I also added a second parenthetical explanation for the QUERY portion. --- content/docs/url-dispatch.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/url-dispatch.md b/content/docs/url-dispatch.md index 4d4a732..307eff2 100644 --- a/content/docs/url-dispatch.md +++ b/content/docs/url-dispatch.md @@ -20,9 +20,9 @@ a particular handler object is invoked. Resource configuration is the act of adding a new resources to an application. A resource has a name, which acts as an identifier to be used for URL generation. The name also allows developers to add routes to existing resources. -A resource also has a pattern, meant to match against the *PATH* portion of a *URL*. -It does not match against the *QUERY* portion (the portion following the scheme and -port, e.g., */foo/bar* in the *URL* *http://localhost:8080/foo/bar?q=value*). +A resource also has a pattern, meant to match against the *PATH* portion of a *URL* (the portion following the scheme and +port, e.g. */foo/bar* in the *URL* *http://localhost:8080/foo/bar?q=value*). +It does not match against the *QUERY* portion (the portion that follows *?*, e.g. *q=value* in *http://localhost:8080/foo/bar?q=value*). The [*App::route()*](../../actix-web/actix_web/struct.App.html#method.route) method provides simple way of registering routes. This method adds a single route to application