Skip to content

Commit f6d68c4

Browse files
authored
expand Readme (#1)
1 parent f140a62 commit f6d68c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,8 @@ when the callable argument has a certain type signature. One way to achieve this
108108
to restrict the allowed types of the callable argument to chosen subtypes of
109109
`CallableWithReturnType`. This includes `CallableWithTypeSignature`, so the entire
110110
type signature, except any keyword arguments, may be accounted for.
111+
112+
For example, a `CallableWithReturnType{Float32}` is guaranteed to return a
113+
`Float32` value, if a value is returned. A
114+
`CallableWithTypeSignature{Float32, Tuple{Float32, Float32}}` additionally
115+
guarantees to only accept exactly two `Float32` values as positional arguments.

0 commit comments

Comments
 (0)