aboutsummaryrefslogtreecommitdiffstats
path: root/lib/edoc/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-04-10 12:29:29 +0200
committerHans Bolinder <[email protected]>2017-04-10 12:39:05 +0200
commit548f4e38b88fab0f3637ffbf3369262594873854 (patch)
tree7a302af5ea37e6c9260e1003c215421d445a16ce /lib/edoc/src
parent8fd5553684f0cdf2e7c35733d4b86d6a73f9b576 (diff)
downloadotp-548f4e38b88fab0f3637ffbf3369262594873854.tar.gz
otp-548f4e38b88fab0f3637ffbf3369262594873854.tar.bz2
otp-548f4e38b88fab0f3637ffbf3369262594873854.zip
edoc: Fix an undefined function warning
Commit 15a631c introduced an undefined function warning. When the new string module is merged to master, this commit can be reverted.
Diffstat (limited to 'lib/edoc/src')
-rw-r--r--lib/edoc/src/edoc_layout.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/edoc/src/edoc_layout.erl b/lib/edoc/src/edoc_layout.erl
index 71ba9a6676..5b1889ab06 100644
--- a/lib/edoc/src/edoc_layout.erl
+++ b/lib/edoc/src/edoc_layout.erl
@@ -773,7 +773,10 @@ string_length(Data) ->
try iolist_size(Data)
catch
_:_ ->
- try string:length(Data)
+ M = string,
+ F = length,
+ As = [Data],
+ try apply(M, F, As)
catch
_:_ ->
20