Skip to content

Commit 2063b92

Browse files
committed
Small update to Slice docs
from #9 (comment)
1 parent 072b2e4 commit 2063b92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/snippet.rs

+3
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)