記錄包提供的繫結

#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 中。