From 982942b2585a1529c98c929ba0c59d4dc8b805c5 Mon Sep 17 00:00:00 2001 From: Ben Greenman Date: Sat, 10 Nov 2018 23:42:12 -0500 Subject: [PATCH] doc: change 'syntax->string' doc to match implementation (#2351) The implementation requires a more specific input than the documentation suggests. --- pkgs/racket-doc/syntax/scribblings/to-string.scrbl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/racket-doc/syntax/scribblings/to-string.scrbl b/pkgs/racket-doc/syntax/scribblings/to-string.scrbl index ea0e9c345c..5bcff0b41f 100644 --- a/pkgs/racket-doc/syntax/scribblings/to-string.scrbl +++ b/pkgs/racket-doc/syntax/scribblings/to-string.scrbl @@ -1,13 +1,14 @@ #lang scribble/doc @(require "common.rkt" - (for-label syntax/stx + (for-label racket/contract + syntax/stx syntax/to-string)) @title[#:tag "to-string"]{Rendering Syntax Objects with Formatting} @defmodule[syntax/to-string] -@defproc[(syntax->string [stx-list stx-list?]) string?]{ +@defproc[(syntax->string [stx-list (and/c syntax? stx-list?)]) string?]{ Builds a string with newlines and indenting according to the source locations in @racket[stx-list]; the outer pair of parens are not