Skip to content

Commit 7bc83ea

Browse files
committed
fix typos in Spans.scala comments
1 parent ab9bf66 commit 7bc83ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/util/Spans.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import language.implicitConversions
55
/** The offsets part of a full position, consisting of 2 or 3 entries:
66
* - start: the start offset of the span, in characters from start of file
77
* - end : the end offset of the span
8-
* - point: if given, the offset where a sing;le `^` would be logically placed
8+
* - point: if given, the offset where a single `^` would be logically placed
99
*
10-
& Spans are encoded according to the following format in little endian:
10+
* Spans are encoded according to the following format in little endian:
1111
* Start: unsigned 26 Bits (works for source files up to 64M)
1212
* End: unsigned 26 Bits
1313
* Point: unsigned 12 Bits relative to start
@@ -30,8 +30,8 @@ object Spans {
3030

3131
/** A span indicates a range between a start offset and an end offset.
3232
* Spans can be synthetic or source-derived. A source-derived span
33-
* has in addition a point lies somewhere between start and end. The point
34-
* is roughly where the ^ would go if an error was diagnosed at that position.
33+
* has in addition a point. The point lies somewhere between start and end. The point
34+
* is roughly where the `^` would go if an error was diagnosed at that position.
3535
* All quantities are encoded opaquely in a Long.
3636
*/
3737
class Span(val coords: Long) extends AnyVal {

0 commit comments

Comments
 (0)