aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/reference_manual/expressions.xml
diff options
context:
space:
mode:
authorDerek Brown <[email protected]>2014-11-20 13:46:42 -0500
committerDerek Brown <[email protected]>2014-11-20 15:56:42 -0500
commit069fe15452aa33440aff5e770c169bd3612d7646 (patch)
tree38e9dfb373fdf898680f1982ba1728dfb1c43f93 /system/doc/reference_manual/expressions.xml
parent2feb7638d47f2d1012871de3040fa7d50f058e3a (diff)
downloadotp-069fe15452aa33440aff5e770c169bd3612d7646.tar.gz
otp-069fe15452aa33440aff5e770c169bd3612d7646.tar.bz2
otp-069fe15452aa33440aff5e770c169bd3612d7646.zip
Fix spelling and grammar
Diffstat (limited to 'system/doc/reference_manual/expressions.xml')
-rw-r--r--system/doc/reference_manual/expressions.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index fa8f9b2e8f..62a344ad58 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -283,7 +283,7 @@ fun lists:append/2([1,2], [3,4])
length([]) ->
0;
length([H|T]) ->
- 1 + length(T). %% Calls the local funtion length/1
+ 1 + length(T). %% Calls the local function length/1
f(X) when erlang:length(X) > 3 -> %% Calls erlang:length/1,
%% which is allowed in guards
@@ -301,7 +301,7 @@ f(X) when erlang:length(X) > 3 -> %% Calls erlang:length/1,
-import(mod,[length/1]).
-f(X) when erlang:length(X) > 33 -> %% Calls erlang:lenght/1,
+f(X) when erlang:length(X) > 33 -> %% Calls erlang:length/1,
%% which is allowed in guards
erlang:length(X); %% Explicit call to erlang:length in body