Skip to content

After connection is drop()ed, it becomes parmanently unable to use #279

Closed Answered by bikeshedder
jjangga0214 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm wondering about that comment:

// This works when i == 0 or i == 1, but not when i == 2 

The for loop for i in 0..2 { ... } will only iterate over 0 and 1. If you meant to write a loop that goes from 0 to 2 (inclusive) you can use for i in 0..=2 {...} instead.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jjangga0214
Comment options

@bikeshedder
Comment options

@jjangga0214
Comment options

Answer selected by jjangga0214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
invalid The issue is invalid and has been raised in error. A-diesel Area: Diesel / deadpool-diesel
2 participants