From 1ff1ac85cde5dcb7382e14ae3f452ee737b03ca1 Mon Sep 17 00:00:00 2001 From: Andrzej Sliwa Date: Sun, 17 Mar 2013 00:03:18 +0100 Subject: missing comma in documentation of static examples --- src/cowboy_static.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cowboy_static.erl b/src/cowboy_static.erl index fe6600c..dd7eed5 100644 --- a/src/cowboy_static.erl +++ b/src/cowboy_static.erl @@ -154,17 +154,17 @@ %% ``` %% %% Serve cowboy/priv/www/index.html as http://example.com/ %% {"/", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, <<"index.html">>}]} %% %% %% Serve cowboy/priv/www/page.html under http://example.com/*/page %% {"/:_/page", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, <<"page.html">>}]}. %% %% %% Always serve cowboy/priv/www/other.html under http://example.com/other %% {"/other/[...]", cowboy_static, -%% [{directory, {priv_dir, cowboy, [<<"www">>]}} +%% [{directory, {priv_dir, cowboy, [<<"www">>]}}, %% {file, "other.html"}]} %% ''' -module(cowboy_static). -- cgit v1.2.3