From 50734325b9d2440c88fbbee2318a25e64ccd34c8 Mon Sep 17 00:00:00 2001 From: "Andrew E. Torda" <torda@zbh.uni-hamburg.de> Date: Sun, 9 May 2021 16:00:52 +0200 Subject: [PATCH] Just cosmetic. --- pi.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pi.go b/pi.go index 8e45685..f0a0dd7 100644 --- a/pi.go +++ b/pi.go @@ -25,6 +25,13 @@ const ( exitFailure ) +type cmdArgs struct { // args and flags from command line + seed int64 + nstep, nstepPrint int + plotName string + doStdout bool // don't print boring table +} + // usage prints out anything the caller gives us then bails. func usage(e string) { u := "usage: pi [flags] seed nsteps nstep_nprint" @@ -78,13 +85,6 @@ func wrtTable(cmdArgs cmdArgs, pi, stdErr []float32) { } } -type cmdArgs struct { - seed int64 - nstep, nstepPrint int - plotName string - doStdout bool // don't print boring table -} - // cmdline gets our command line arguments and maybe a flag or two. func cmdline(cmdArgs *cmdArgs) error { var err error -- GitLab