diff options
author | Hans Bolinder <[email protected]> | 2017-04-10 12:29:29 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-04-10 12:39:05 +0200 |
commit | 548f4e38b88fab0f3637ffbf3369262594873854 (patch) | |
tree | 7a302af5ea37e6c9260e1003c215421d445a16ce /lib/edoc | |
parent | 8fd5553684f0cdf2e7c35733d4b86d6a73f9b576 (diff) | |
download | otp-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')
-rw-r--r-- | lib/edoc/src/edoc_layout.erl | 5 |
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 |