Skip to content

Commit 0cd2cbb

Browse files
committed
Merge pull request #717 from ezephir/sil-docs-apply-fix
[SIL] Update generic apply and partial_apply docs
2 parents 3e6fc7d + 586a66c commit 0cd2cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/SIL.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ apply
26062606
// %1, %2, etc. must be of the argument types $A, $B, etc.
26072607
// %r will be of the return type $R
26082608

2609-
%r = apply %0<T = A, U = B>(%1, %2, ...) : $<T, U>(T, U, ...) -> R
2609+
%r = apply %0<A, B>(%1, %2, ...) : $<T, U>(T, U, ...) -> R
26102610
// %0 must be of a polymorphic function type $<T, U>(T, U, ...) -> R
26112611
// %1, %2, etc. must be of the argument types after substitution $A, $B, etc.
26122612
// %r will be of the substituted return type $R'
@@ -2650,7 +2650,7 @@ partial_apply
26502650
// of the tail part of the argument tuple of %0
26512651
// %c will be of the partially-applied thick function type (Z...) -> R
26522652

2653-
%c = partial_apply %0<T = A, U = B>(%1, %2, ...) : $(Z..., T, U, ...) -> R
2653+
%c = partial_apply %0<A, B>(%1, %2, ...) : $(Z..., T, U, ...) -> R
26542654
// %0 must be of a polymorphic function type $<T, U>(T, U, ...) -> R
26552655
// %1, %2, etc. must be of the argument types after substitution $A, $B, etc.
26562656
// of the tail part of the argument tuple of %0

0 commit comments

Comments
 (0)