Skip to content

Commit

Permalink
Fix format problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Eckaos committed Jul 26, 2024
1 parent e1f837e commit 107d6a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/manual/typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ Subtyping extends to type constructors in the following way:
presence of a rule for function types, namely that `T -> U <: S -> V` if `S <:
T` and `U <: V`. This is not the case in Nickel, for various technical reasons.
However, you can work around this limitation by expanding a given function:
If `f` has type `T -> U`, but a value of type `S -> V` is required, use `fun x => f x`
instead, which has the same runtime behavior but isn't typed in the same
way.
If `f` has type `T -> U`, but a value of type `S -> V` is required,
use `fun x => f x`instead, which has the same runtime behavior
but isn't typed in the same way.

### Polymorphism

Expand Down

0 comments on commit 107d6a5

Please sign in to comment.