Skip to content

Commit

Permalink
Fix comment spacing in websocket example
Browse files Browse the repository at this point in the history
  • Loading branch information
ChannyClaus committed Apr 11, 2024
1 parent 50c035c commit b85bdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/websockets/src/main.rs
Expand Up @@ -99,7 +99,7 @@ async fn ws_handler(

/// Actual websocket statemachine (one will be spawned per connection)
async fn handle_socket(mut socket: WebSocket, who: SocketAddr) {
//send a ping (unsupported by some browsers) just to kick things off and get a response
// send a ping (unsupported by some browsers) just to kick things off and get a response
if socket.send(Message::Ping(vec![1, 2, 3])).await.is_ok() {
println!("Pinged {who}...");
} else {
Expand Down

0 comments on commit b85bdc1

Please sign in to comment.