diff --git a/collects/teachpack/htdp/Docs/dir.thtml b/collects/teachpack/htdp/Docs/dir.thtml index 3be73cc43c..8ff9259cdf 100644 --- a/collects/teachpack/htdp/Docs/dir.thtml +++ b/collects/teachpack/htdp/Docs/dir.thtml @@ -4,7 +4,7 @@

The teachpack dir.ss provides two-structures and one operation:

-
  • (define-struct dir (names dirs files)) +
  • (define-struct dir (name dirs files))
  • (define-struct file (name size content)) @@ -15,10 +15,10 @@ operation:

    The teachpack relies on two data definitions:

  • - A directory is - ({(idx make-dir)} string[path] (listof directory) (listof file)) + A Directory is + ({(idx make-dir)} string[path] (listof Directory) (listof File))
  • - A file is ({(idx make-file)} string[file name]) + A File is ({(idx make-file)} String PositiveNumber (listof Char))
  • Sample: Set teachpack to dir.ss and execute. Then evaluate diff --git a/collects/teachpack/htdp/Docs/world.thtml b/collects/teachpack/htdp/Docs/world.thtml index ab2d3cf97c..223f215eb3 100644 --- a/collects/teachpack/htdp/Docs/world.thtml +++ b/collects/teachpack/htdp/Docs/world.thtml @@ -83,7 +83,10 @@ students to simulate a small world of animated drawings and games: (add-line scene x0 y0 x1 y1 c) places a line of color c from (x0,y0) to (x1,y1) into scene; - (x,y) are comp. graph. coordinates + (x,y) are comp. graph. coordinates; + in contrast to the {(idx image.ss)} add-line function, this + one cuts off those portions of the line that go beyond the boundaries of + the given Scene.
  • {(idx run-movie)} : (Listof Image) -> true
    (run-movie loi)