Skip to content

Commit

Permalink
Merge pull request inaka#58 from kbaird/ExplicitDigitsOKInFunctionNames
Browse files Browse the repository at this point in the history
Make it explicit that digits are allowed in function names - README.m…
  • Loading branch information
Brujo Benavides committed Sep 28, 2015
2 parents f18b51a + fdf71c0 commit a252721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Erlang syntax is horrible amirite? So you might as well make the best of it, rig

***
##### Function Names
> Function names must use only lowercase characters. Words in function names must be separated with `_`.
> Function names must use only lowercase characters or digits. Words in function names must be separated with `_`.
*Examples*: [function_names](src/function_names.erl)

Expand Down
4 changes: 3 additions & 1 deletion src/function_names.erl
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
-module(function_names).

-export([badFunction/0, 'BAD_FUNCTION'/0, good_function/0]).
-export([badFunction/0, 'BAD_FUNCTION'/0, good_function/0, base64_encode/0]).

badFunction() -> {not_allowed, camel_case}.

'BAD_FUNCTION'() -> {not_allowed, upper_case}.

good_function() -> ok.

base64_encode() -> ok.

0 comments on commit a252721

Please sign in to comment.