From: Rob Pike Date: Sun, 26 Oct 2008 15:27:50 +0000 (-0700) Subject: fix top-level comments X-Git-Tag: weekly.2009-11-06~2884 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=db25e787fed221395c2a4298844d4e206f1a2ff0;p=gostls13.git fix top-level comments R=rsc DELTA=14 (13 added, 0 deleted, 1 changed) OCL=17858 CL=17867 --- diff --git a/src/lib/fmt/format.go b/src/lib/fmt/format.go index 9099a16306..da8f917329 100644 --- a/src/lib/fmt/format.go +++ b/src/lib/fmt/format.go @@ -5,10 +5,12 @@ package fmt /* + Raw formatter. See print.go for a more palatable interface. + f := fmt.New(); print f.d(1234).s("\n").str(); // create string, print it f.d(-1234).s("\n").put(); // print string - f.ud(^0).putnl(); // print string with automatic newline + f.ud(1<<63).putnl(); // print string with automatic newline */ // export Fmt, New; diff --git a/src/lib/fmt/print.go b/src/lib/fmt/print.go index db42c1e0d5..39500f44ae 100644 --- a/src/lib/fmt/print.go +++ b/src/lib/fmt/print.go @@ -4,6 +4,11 @@ package fmt +/* + C-like printf, but because of reflection knowledge does not need + to be told about sizes and signedness (no %llud etc. - just %d). +*/ + import ( "fmt"; "reflect";