aboutsummaryrefslogtreecommitdiff
path: root/man/man3/tomo-Text.at.3
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-19 14:48:17 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-19 14:48:17 -0400
commit1663004ff08de9d90338cb3c04bbf45e61477d6b (patch)
tree36f8bdd60f976537c8582769881193169fca1827 /man/man3/tomo-Text.at.3
parent67fd3c725e6511adf70345f0733ec0b948477a11 (diff)
Minor formatting fixes
Diffstat (limited to 'man/man3/tomo-Text.at.3')
-rw-r--r--man/man3/tomo-Text.at.39
1 files changed, 6 insertions, 3 deletions
diff --git a/man/man3/tomo-Text.at.3 b/man/man3/tomo-Text.at.3
index 50693494..4cb9c98e 100644
--- a/man/man3/tomo-Text.at.3
+++ b/man/man3/tomo-Text.at.3
@@ -2,7 +2,7 @@
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
-.TH Text.at 3 2025-04-19T14:30:40.367051 "Tomo man-pages"
+.TH Text.at 3 2025-04-19T14:48:15.716765 "Tomo man-pages"
.SH NAME
Text.at \- Get the graphical cluster at a given index. This is similar to `str[i]` with ASCII text, but has more correct behavior for unicode text.
@@ -10,7 +10,7 @@ Text.at \- Get the graphical cluster at a given index. This is similar to `str[i
Tomo Standard Library
.SH SYNOPSIS
.nf
-.BI "Text.at : func(text: Text, index: Int -> Text)"
+.BI Text.at\ :\ func(text:\ Text,\ index:\ Int\ ->\ Text)
.fi
.SH DESCRIPTION
@@ -26,7 +26,10 @@ text Text The text from which to get a cluster. -
index Int The index of the graphical cluster (1-indexed). -
.TE
.SH RETURN
-A `Text` with the single graphical cluster at the given index. Note: negative indices are counted from the back of the text, so `-1` means the last cluster, `-2` means the second-to-last, and so on.
+A `Text` with the single graphical cluster at the given index.
+
+.SH NOTES
+Negative indices are counted from the back of the text, so `-1` means the last cluster, `-2` means the second-to-last, and so on.
.SH EXAMPLES
.EX