summaryrefslogtreecommitdiff
path: root/src/diagnostic.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-03 18:15:09 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-03 18:15:09 +0200
commit54e0da59e37c25f5b9f9cd8fbe162184debe521b (patch)
tree699cdb8e05dd2867a185bd2f662764f107efecb0 /src/diagnostic.rs
parent91d14d2a221f619738e4534c1b4266633ce5789d (diff)
Small documentation fixes 🧾
Diffstat (limited to 'src/diagnostic.rs')
-rw-r--r--src/diagnostic.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/diagnostic.rs b/src/diagnostic.rs
index 2548e1d5..8d56f401 100644
--- a/src/diagnostic.rs
+++ b/src/diagnostic.rs
@@ -41,7 +41,7 @@ impl Display for Level {
}
}
-/// Construct a diagnostic with `Error` level.
+/// Construct a diagnostic with [`Error`] level.
///
/// ```
/// # use typstc::error;
@@ -59,6 +59,8 @@ impl Display for Level {
/// // Create an error and directly add it to existing feedback.
/// error!(@feedback, span, "oh no!");
/// ```
+///
+/// [`Error`]: diagnostic/enum.Level.html#variant.Error
#[macro_export]
macro_rules! error {
($($tts:tt)*) => {
@@ -66,10 +68,12 @@ macro_rules! error {
};
}
-/// Construct a diagnostic with `Warning` level.
+/// Construct a diagnostic with [`Warning`] level.
///
/// This works exactly like `error!`. See its documentation for more
/// information.
+///
+/// [`Warning`]: diagnostic/enum.Level.html#variant.Warning
#[macro_export]
macro_rules! warning {
($($tts:tt)*) => {