Просмотр исходного кода

Fix: update function name in comments

Rod Hynes 5 лет назад
Родитель
Сommit
7b84ae58a3
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      psiphon/common/fragmentor/fragmentor.go

+ 5 - 5
psiphon/common/fragmentor/fragmentor.go

@@ -170,7 +170,7 @@ type Conn struct {
 }
 
 // NewConn creates a new Conn. When no seed was provided in the Config,
-// SetPRNG must be called before the first Write.
+// SetReplay must be called before the first Write.
 func NewConn(
 	config *Config,
 	noticeEmitter func(string),
@@ -229,10 +229,10 @@ func GetUpstreamMetricsNames() []string {
 }
 
 // SetReplay sets the PRNG to be used by the fragmentor, allowing for replay
-// of a fragmentor sequence. SetPRNG may be used to set the PRNG after a conn
-// has already been wrapped with a fragmentor.Conn, when no PRNG is specified
-// in the config, and before the first Write. SetReplay sets the fragmentor
-// isReplay flag to true.
+// of a fragmentor sequence. SetReplay may be used to set the PRNG after a
+// conn has already been wrapped with a fragmentor.Conn, when no PRNG is
+// specified in the config, and before the first Write. SetReplay sets the
+// fragmentor isReplay flag to true.
 //
 // For replay coordinated with a peer, SetReplay may be used with
 // obfuscator.GetDerivedPRNG, using a seed provided by the peer.