diff --git a/README.md b/README.md index bb289976..b6205387 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ - +
-# Iris
-[](https://twitter.com/intent/follow?screen_name=makismaropoulos)
+
You can [request](https://bit.ly/iris-req-book) a PDF version and online access of the **E-Book** today and be participated in the development of Iris.
diff --git a/core/router/fs.go b/core/router/fs.go
index 6e769bfc..3e197b5b 100644
--- a/core/router/fs.go
+++ b/core/router/fs.go
@@ -464,8 +464,8 @@ func FileServer(directory string, opts ...DirOptions) context.Handler {
// Usage:
// fileserver := FileServer("./static_files", DirOptions {...})
// h := StripPrefix("/static", fileserver)
-// app.Get("/static/{f:path}", h)
-// app.Head("/static/{f:path}", h)
+// app.Get("/static/{file:path}", h)
+// app.Head("/static/{file:path}", h)
func StripPrefix(prefix string, h context.Handler) context.Handler {
if prefix == "" {
return h
diff --git a/iris.go b/iris.go
index f5bdf68b..ae545bba 100644
--- a/iris.go
+++ b/iris.go
@@ -383,8 +383,8 @@ var (
// Usage:
// fileserver := iris.FileServer("./static_files", DirOptions {...})
// h := iris.StripPrefix("/static", fileserver)
- // app.Get("/static/{f:path}", h)
- // app.Head("/static/{f:path}", h)
+ // app.Get("/static/{file:path}", h)
+ // app.Head("/static/{file:path}", h)
StripPrefix = router.StripPrefix
// Gzip is a middleware which enables writing
// using gzip compression, if client supports.