Fix wildcard syntax in Files docs
@@ -10,7 +10,7 @@ import (
// Files defines a endpoint that serves static assets via HTTP. The logic for
// what to do when the filename points to a file vs. a directory is the same as
// the standard http package ServeFile function. The path may end with a
-// wildcard that matches the rest of the URL (e.g. *filepath). If it does the
+// wildcard that matches the rest of the URL (e.g. {*filepath}). If it does the
// matching path is appended to filename to form the full file path, so:
//
// Files("/index.html", "/www/data/index.html")
@@ -18,7 +18,7 @@ import (
// returns the content of the file "/www/data/index.html" when requests are sent
// to "/index.html" and:
//
-// Files("/assets/*filepath", "/www/data/assets")
+// Files("/assets/{*filepath}", "/www/data/assets")
//
// returns the content of the file "/www/data/assets/x/y/z" when requests are
// sent to "/assets/x/y/z".
@@ -26,21 +26,24 @@ import (
// Files must appear in Service.
//
// Files accepts 2 arguments and an optional DSL. The first argument is the
-// request path which may use a wildcard starting with *. The second argument is
-// the path on disk to the files being served. The file path may be absolute or
-// relative to the current path of the process. The DSL allows setting a
-// description and documentation.
+// request path which may use a wildcard starting with {* and ending with }.
+// The second argument is the path on disk to the files being served. The
+// file path may be absolute or relative to the current path of the process.
+// The DSL allows specifying a description and documentation as well.
//
// Example:
//
// var _ = Service("bottle", func() {
// Files("/index.html", "/www/data/index.html", func() {
-// Description("Serve home page")
+// Description("Serve home page.")
// Docs(func() {
// Description("Additional documentation")
// URL("https://goa.design")
// })
// })
+// Files("/static/{*path}", "/www/data/static", func() {
+// Description("Serve static content.")
+// })
// })
//
func Files(path, filename string, fns ...func()) {
