This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -544,6 +544,12 @@ impl Span {
544544 }
545545
546546 /// Returns a `Span` that would enclose both `self` and `end`.
547+ ///
548+ /// ```text
549+ /// ____ ___
550+ /// self lorem ipsum end
551+ /// ^^^^^^^^^^^^^^^^^^^^
552+ /// ```
547553 pub fn to ( self , end : Span ) -> Span {
548554 let span_data = self . data ( ) ;
549555 let end_data = end. data ( ) ;
@@ -567,6 +573,12 @@ impl Span {
567573 }
568574
569575 /// Returns a `Span` between the end of `self` to the beginning of `end`.
576+ ///
577+ /// ```text
578+ /// ____ ___
579+ /// self lorem ipsum end
580+ /// ^^^^^^^^^^^^^
581+ /// ```
570582 pub fn between ( self , end : Span ) -> Span {
571583 let span = self . data ( ) ;
572584 let end = end. data ( ) ;
@@ -577,7 +589,13 @@ impl Span {
577589 )
578590 }
579591
580- /// Returns a `Span` between the beginning of `self` to the beginning of `end`.
592+ /// Returns a `Span` from the beginning of `self` until the beginning of `end`.
593+ ///
594+ /// ```text
595+ /// ____ ___
596+ /// self lorem ipsum end
597+ /// ^^^^^^^^^^^^^^^^^
598+ /// ```
581599 pub fn until ( self , end : Span ) -> Span {
582600 let span = self . data ( ) ;
583601 let end = end. data ( ) ;
You can’t perform that action at this time.
0 commit comments