scroot / gopacket

Automatically exported from code.google.com/p/gopacket
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Documentation fixes #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
You can pull these changes from 
https://code.google.com/r/attilaolah-gopacket/source/list?name=documentation 
— I fixed a few typos in the documentation:

diff --git a/doc.go b/doc.go
index d6481d6..a60867f 100644
--- a/doc.go
+++ b/doc.go
@@ -86,7 +86,7 @@ packetSource.DecodeOptions... see the following sections for 
more details.
 Lazy Decoding

 gopacket optionally decodes packet data lazily, meaning it
-only decodes a packet layer when it needs to to handle a function call.
+only decodes a packet layer when it needs to handle a function call.

  // Create a packet, but don't actually decode anything yet
  packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy)
@@ -123,8 +123,8 @@ gopacket.NewPacket, and it'll use the passed-in slice 
itself.
  }

 The fastest method of decoding is to use both Lazy and NoCopy, but note from
-the many caveats above that for some implementations they may be dangerous
-either or both may be dangerous.
+the many caveats above that for some implementations either or both may be
+dangerous.

 Pointers To Known Layers

Original issue reported on code.google.com by attilaolah on 25 Jun 2014 at 9:39

GoogleCodeExporter commented 9 years ago
Here's the diff, for convenience.

Original comment by attilaolah on 25 Jun 2014 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago
Hey, thanks for the contribution!

I've pushed the changes into the master branch.

If you'd like your name added to the AUTHORS file, please drop me what you'd 
like your line to say :)

Original comment by gconnell@google.com on 25 Jun 2014 at 3:31