racket / scribble

Other
197 stars 90 forks source link

`proc-doc/names` shows unsupported procedure contract form but for valid syntax #323

Closed dannypsnl closed 2 years ago

dannypsnl commented 2 years ago

code example provided by https://blog.racket-lang.org/2012/06/submodules.html cannot work now

(require scribble/srcdoc (for-doc scribble/manual racket/base))

(provide
 (proc-doc/names
  feed (number? . -> . number?) (n)
  ("Feed 1 pound of food to the fish " (racket n) ".")))

get

proc-doc/names: unsupported procedure contract form (no argument names)
  at: (-> number? number?)
  in: (proc-doc/names feed (-> number? number?) (n) ("Feed 1 pound of food to the fish " (racket n) "."))
dannypsnl commented 2 years ago

https://racket.discourse.group/t/get-proc-doc-names-unsupported-procedure-contract-form/591/2?u=dannypsnl solved