Skip to content

Commit c2e4a75

Browse files
committed
Fix AwsExRay.subsegment type spec
1 parent 05b0ea3 commit c2e4a75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/aws_ex_ray.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ defmodule AwsExRay do
410410
name :: String.t,
411411
annotations :: map,
412412
opts :: keyword,
413-
func :: fun
414-
) :: :ok
413+
func :: (String.t -> ret)
414+
) :: ret when ret: term
415415
def subsegment(name, annotations, opts, func) do
416416

417417
subsegment_state = start_subsegment(name, opts)

0 commit comments

Comments
 (0)