Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b1d68b

Browse files
Merge pull request #10 from phansch/slice_docs
Small update to `Slice` docs
2 parents 072b2e4 + 2063b92 commit 4b1d68b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/snippet.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ pub struct Snippet {
4040

4141
/// Structure containing the slice of text to be annotated and
4242
/// basic information about the location of the slice.
43+
///
44+
/// One `Slice` is meant to represent a single, continuous,
45+
/// slice of source code that you want to annotate.
4346
#[derive(Debug, Clone)]
4447
pub struct Slice {
4548
pub source: String,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /