Skip to content

Commit fd57310

Browse files
committed
docs(client): 📝 doc change
1 parent ef63f74 commit fd57310

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

common/src/user.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ impl User {
115115
!self.errs.is_empty()
116116
}
117117

118-
/** Returns an error wrapping/representing any underlying errors that
119-
have accumulated. Returns an error even if none have accumulated, so
120-
it's a good idea to check with `.has_errors()` before calling this.
121-
*/
122118
pub fn get_errors(&self) -> UserError {
123119
UserError::from_sockets(&(self.errs))
124120
}
@@ -171,9 +167,7 @@ impl User {
171167
self.socket.enqueue(&(msg.bytes()));
172168
}
173169

174-
/** Attempt to write bytes from the outgoing buffer to the underlying
175-
socket. Any errors will be added to an internal `Vec` and not returned.
176-
*/
170+
/// Send any data that's been queued up.
177171
pub fn send(&mut self) {
178172
if self.socket.send_buff_size() > 0 {
179173
if let Err(e) = self.socket.send_data() {

0 commit comments

Comments
 (0)