From 8dab27e6cd093c509e2ca0379dfd41524edc17dc Mon Sep 17 00:00:00 2001 From: Erik Terpstra Date: Thu, 25 Jun 2020 15:20:23 +0200 Subject: Change index to byte index in doc comments --- src/gleam/regex.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gleam/regex.gleam b/src/gleam/regex.gleam index 6534095..5c668eb 100644 --- a/src/gleam/regex.gleam +++ b/src/gleam/regex.gleam @@ -10,7 +10,7 @@ pub external type Regex /// The details about a particular match: /// /// - match — the full string of the match. -/// - index — the index of the match in the original string. +/// - index — the byte index of the match in the original string. /// - submatches — a Regex can have subpatterns, sup-parts that are in parentheses. /// pub type Match { @@ -20,7 +20,7 @@ pub type Match { /// When a regular expression fails to compile: /// /// - error — a descriptive error message -/// - index — the index of the cause in the regex string +/// - index — the byte index of the cause in the regex string /// pub type FromStringError { FromStringError(error: String, index: Int) -- cgit v1.2.3