Improve spec of list interleave.
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 4 Oct 2015 05:34:46 +0000 (01:34 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 4 Oct 2015 05:34:46 +0000 (01:34 -0400)
src/beam_stats_msg_graphite.erl

index d33e450..5b8bd43 100644 (file)
@@ -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.