summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/src/reference/types.md6
-rw-r--r--library/src/compute/foundations.rs10
-rw-r--r--library/src/layout/list.rs5
-rw-r--r--library/src/layout/par.rs2
-rw-r--r--library/src/text/misc.rs3
5 files changed, 11 insertions, 15 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md
index d7482a92..355027f5 100644
--- a/docs/src/reference/types.md
+++ b/docs/src/reference/types.md
@@ -680,11 +680,9 @@ Returns the values of the dictionary as an array in key-order.
- returns: array
### pairs()
-Call a function for each key-value pair and return the results in an array.
+Returns the keys and values of the dictionary as an array of pairs. Each pair is
+represented as an array of length two.
-- mapper: function (positional, required)
- The function to apply to each pair. Gets passed the key and value as two
- separate arguments.
- returns: array
### remove()
diff --git a/library/src/compute/foundations.rs b/library/src/compute/foundations.rs
index f17af219..ccf7a165 100644
--- a/library/src/compute/foundations.rs
+++ b/library/src/compute/foundations.rs
@@ -86,8 +86,8 @@ pub fn panic(args: &mut Args) -> SourceResult<Value> {
/// produce any output in the document.
///
/// ## Example
-/// ```example
-/// #assert(1 < 2, message: "one is")
+/// ```typ
+/// #assert(1 < 2, message: "math broke")
/// ```
///
/// ## Parameters
@@ -119,9 +119,9 @@ pub fn assert(args: &mut Args) -> SourceResult<Value> {
///
/// ## Example
/// ```example
-/// #eval("1 + 2") \
-/// #eval("[*Strong text*]") \
-/// #eval("(1, 2, 3)").len()
+/// #eval("1 + 1") \
+/// #eval("(1, 2, 3, 4)").len() \
+/// #eval("[*Strong text*]")
/// ```
///
/// ## Parameters
diff --git a/library/src/layout/list.rs b/library/src/layout/list.rs
index 38816933..e83b91ab 100644
--- a/library/src/layout/list.rs
+++ b/library/src/layout/list.rs
@@ -11,20 +11,19 @@ use crate::text::TextNode;
/// ## Example
/// ```example
/// - *Content*
-/// - Basics
/// - Text
/// - Math
/// - Layout
/// - Visualize
/// - Meta
+/// - Symbols
///
/// - *Compute*
/// #list(
/// [Foundations],
/// [Calculate],
-/// [Create],
+/// [Construct],
/// [Data Loading],
-/// [Utility],
/// )
/// ```
///
diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs
index bd08b8a5..64a6c513 100644
--- a/library/src/layout/par.rs
+++ b/library/src/layout/par.rs
@@ -32,7 +32,7 @@ use crate::text::{
/// integer value of $n > 2$.
///
/// Without loss of generality,
-/// let a be the smallest of the
+/// let $a$ be the smallest of the
/// three integers. Then, we ...
/// ```
///
diff --git a/library/src/text/misc.rs b/library/src/text/misc.rs
index 147f758a..de7974cd 100644
--- a/library/src/text/misc.rs
+++ b/library/src/text/misc.rs
@@ -312,8 +312,7 @@ impl Case {
/// Display text in small capitals.
///
/// _Note:_ This enables the OpenType `smcp` feature for the font. Not all fonts
-/// support this feature (including Typst's current default font,
-/// unfortunately). Sometimes smallcaps are part of a dedicated font and
+/// support this feature. Sometimes smallcaps are part of a dedicated font and
/// sometimes they are not available at all. In the future, this function will
/// support selecting a dedicated smallcaps font as well as synthesizing
/// smallcaps from normal letters, but this is not yet implemented.