Skip to content

Commit

Permalink
doc/faq: tidy up a couple of nits
Browse files Browse the repository at this point in the history
The phrase "couple X" is considered colloquial, so make that "a couple of X".
Also move the start of a sentence to a new line in a couple of places
for easier editing, in one place thereby removing two spaces after a period.

Change-Id: If5ef05eb496afc235f8f0134c4e7346375a65181
Reviewed-on: https://go-review.googlesource.com/112176
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
robpike committed May 8, 2018
1 parent 43b18f4 commit cd1976d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/go_faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -1855,17 +1855,19 @@ <h3 id="Why_is_my_trivial_program_such_a_large_binary">

<p>
The linker in the <code>gc</code> toolchain
creates statically-linked binaries by default. All Go binaries therefore include the Go
creates statically-linked binaries by default.
All Go binaries therefore include the Go
run-time, along with the run-time type information necessary to support dynamic
type checks, reflection, and even panic-time stack traces.
</p>

<p>
A simple C "hello, world" program compiled and linked statically using
gcc on Linux is around 750 kB, including an implementation of
<code>printf</code>. An equivalent Go program using
<code>fmt.Printf</code> weighs a couple megabytes, but that includes
more powerful run-time support, and type and debugging information.
<code>printf</code>.
An equivalent Go program using
<code>fmt.Printf</code> weighs a couple of megabytes, but that includes
more powerful run-time support and type and debugging information.
</p>

<h3 id="unused_variables_and_imports">
Expand Down

0 comments on commit cd1976d

Please sign in to comment.