Skip to content

Commit

Permalink
net.http.file: fix usage examples (add closing apostrophes)
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Apr 23, 2024
1 parent 5cb6b60 commit 354b210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/net/http/file/static_server.v
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ pub mut:
// The most common usage is the following: `v -e 'import net.http.file; file.serve()'`
// will listen for http requests on port 4001 by default, and serve all the files in the current folder.
//
// Another example: `v -e 'import net.http.file; file.serve(folder: "/tmp")`
// Another example: `v -e 'import net.http.file; file.serve(folder: "/tmp")'`
// will serve all files inside the /tmp folder.
//
// Another example: `v -e 'import net.http.file; file.serve(folder: "~/Projects", on: ":5002")`
// Another example: `v -e 'import net.http.file; file.serve(folder: "~/Projects", on: ":5002")'`
// will expose all the files inside the ~/Projects folder, on http://localhost:5002/ .
pub fn serve(params StaticServeParams) {
mut nparams := params
Expand Down

0 comments on commit 354b210

Please sign in to comment.