记录包提供的绑定
#lang scribble/manual
@; Make sure that code highlighting recognises identifiers from my-package:
꩜require[@for-label[my-package]]
@; Indicate which module is exporting the identifiers documented here.
@defmodule[my-package]
@defproc[(my-procedure [arg1 number?] [arg2 string?]) symbol?]{
The @racket[my-procedure] function repeats the @racket[arg2] string
@racket[arg1] times, and transforms the result into a symbol.
@history[#:added "1.0"
#:changed "1.1" @elem{Improved performance,
from @tt{O(n²)} to @tt{O(n)}}]
}
根据经验,一个模块(可能出现在 (require foo/bar)
右侧的东西,即 foo/bar
)应由单个 .scribble
文件记录。.scribble
文件可以记录多个模块,只要每个模块都记录在一个单独的 @section
中。