Skip to content

Commit 849deb3

Browse files
authored
Fix typespec (#1)
This tiny correction helps apps that use this library directly to pass Dialyzer.
1 parent 02a8aa4 commit 849deb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus_http_config.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
path() ->
4343
get_value(path, ?DEFAULT_PATH).
4444

45-
-spec valid_path_and_registry(string(), prometheus_registry:registry()) ->
45+
-spec valid_path_and_registry(true | string(), prometheus_registry:registry()) ->
4646
false
4747
| {true, prometheus_registry:registry()}
4848
| {registry_conflict, prometheus_registry:registry(), prometheus_registry:registry()}

0 commit comments

Comments
 (0)