Repository: Tencent/tquic (language: rust)

Issue:
Change "IPv4Addr" to "IPv6Addr" in the comments.
Change "IPv4Addr" to "IPv6Addr" in the comments.



Discussion / hints:

Fix patch:
diff --git a/src/codec.rs b/src/codec.rs
index 9fab74be..12c7c8de 100644
--- a/src/codec.rs
+++ b/src/codec.rs
@@ -51,7 +51,7 @@ pub trait Encoder {
     /// Write an IPv4Addr to self in the big-endian byte order.
     fn write_ipv4_addr(&mut self, addr: &Ipv4Addr) -> Result<usize>;
 
-    /// Write an IPv4Addr to self in the big-endian byte order.
+    /// Write an IPv6Addr to self in the big-endian byte order.
     fn write_ipv6_addr(&mut self, addr: &Ipv6Addr) -> Result<usize>;
 }
 


Test patch: