diff --git a/collects/scribblings/reference/procedures.scrbl b/collects/scribblings/reference/procedures.scrbl index 558f203ea7..a2d4b5cf5f 100644 --- a/collects/scribblings/reference/procedures.scrbl +++ b/collects/scribblings/reference/procedures.scrbl @@ -65,6 +65,14 @@ produced by @scheme[define-struct], typically, however, @scheme[name] is not used for reporting errors, since the procedure name is typically hard-wired into an internal check.} + +@defproc[(procedure->method [proc procedure?]) + procedure?]{ + +Returns a procedure that is like @scheme[proc] except that, when applied +to the wrong number of arguments, the resulting error hides the first +argument as if the procedure had been compiled with the +@indexed-scheme['method-arity-error] syntax property.} @; ---------------------------------------- @section{Keywords and Arity}