-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6296f6
commit e4ff3c2
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,10 @@ impl SliceExt for [u8] { | |
}, | ||
); | ||
|
||
if self[start..].is_empty() { | ||
return &[] | ||
} | ||
|
||
&self[start..=end] | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 14 lines 4 code 7 comments 3 blanks | ||
Sit dicta esse doloremque officia iusto? Assumenda alias aperiam id quis | ||
pariatur? Libero modi harum iusto modi magni? Sit temporibus fugit facere | ||
nostrum culpa ipsum totam! Reprehenderit praesentium obcaecati nemo. | ||
|
||
```rust | ||
use std::println; | ||
|
||
fn main () { | ||
// Comment | ||
println!("Hello World!"); | ||
} | ||
``` | ||
|