home
/
code
/
beam_stats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76fcd3
)
Improve spec of list interleave.
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 4 Oct 2015 05:34:46 +0000
(
01:34
-0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 4 Oct 2015 05:34:46 +0000
(
01:34
-0400)
src/beam_stats_msg_graphite.erl
patch
|
blob
|
blame
|
history
diff --git
a/src/beam_stats_msg_graphite.erl
b/src/beam_stats_msg_graphite.erl
index
d33e450
..
5b8bd43
100644
(file)
--- a/
src/beam_stats_msg_graphite.erl
+++ b/
src/beam_stats_msg_graphite.erl
@@
-109,8
+109,8
@@
path_prefix(?T{path=Path}=T, <<Prefix/binary>>) ->
schema_version() ->
<<"beam_stats_v0">>.
--spec interleave(
iolist(), iodata()
) ->
-
iolist()
.
+-spec interleave(
[A], A
) ->
+
[A]
.
interleave([], _) -> [];
interleave([X], _) -> [X];
interleave([X|Xs], Sep) ->
This page took
0.032714 seconds
and
4
git commands to generate.