From 08bad93d56b79dda6dac1ab0843a9b9fbcda60de Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 23 May 2014 23:17:58 +0800 Subject: [PATCH] update doc --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 91af7a7..3279d38 100644 --- a/README.md +++ b/README.md @@ -122,10 +122,10 @@ r3_tree_free(n); Slug ----------------------- -A slug is placeholder, which capture the string from URL as a variable. slugs -will be compiled into regular expression patterns. +A slug is a placeholder, which captures the string from the URL as a variable. +Slugs will be compiled into regular expression patterns. -A slug without pattern like `/user/{userId}` will be compiled into a `[^/]+` pattern. +Slugs without specified pattern (like `/user/{userId}`) will be compiled with the `[^/]+` pattern. To specify the pattern of a slug, you may write a colon to separate the slug name and the pattern: