summaryrefslogtreecommitdiff
path: root/library/src/math/matrix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math/matrix.rs')
-rw-r--r--library/src/math/matrix.rs20
1 files changed, 12 insertions, 8 deletions
diff --git a/library/src/math/matrix.rs b/library/src/math/matrix.rs
index 2d32f4b5..21294b71 100644
--- a/library/src/math/matrix.rs
+++ b/library/src/math/matrix.rs
@@ -1,6 +1,8 @@
use super::*;
/// A column vector.
+///
+/// Tags: math.
#[func]
#[capable(Texify)]
#[derive(Debug, Hash)]
@@ -52,17 +54,19 @@ pub enum Delimiter {
castable! {
Delimiter,
- Expected: "type of bracket or bar",
- Value::Str(s) => match s.as_str() {
- "(" => Self::Paren,
- "[" => Self::Bracket,
- "{" => Self::Brace,
- "|" => Self::Bar,
- _ => Err("expected \"(\", \"[\", \"{\", or \"|\"")?,
- },
+ /// Delimit matrices with parentheses.
+ "(" => Self::Paren,
+ /// Delimit matrices with brackets.
+ "[" => Self::Bracket,
+ /// Delimit matrices with curly braces.
+ "{" => Self::Brace,
+ /// Delimit matrices with vertical bars.
+ "|" => Self::Bar,
}
/// A case distinction.
+///
+/// Tags: math.
#[func]
#[capable(Texify)]
#[derive(Debug, Hash)]