diff --git a/src/ast/expr.rs b/src/ast/expr.rs index 64d3645..60c8f56 100644 --- a/src/ast/expr.rs +++ b/src/ast/expr.rs @@ -3,7 +3,7 @@ use super::val; use super::val::{Val, TypeError}; -/// An `Expr` is any construct that can be resolved to a [`Val`](super::val::Val). +/// An `Expr` is any construct that can be resolved to a [`Val`]. /// It is always pure, meaning there is no internal state and it will always evaluate to /// the same result no matter how often it is called. pub trait Expr { diff --git a/src/ast/val.rs b/src/ast/val.rs index 1f4a164..daf5586 100644 --- a/src/ast/val.rs +++ b/src/ast/val.rs @@ -2,7 +2,7 @@ use std::fmt; -/// Any primitive data type a [`Val`](Val) can hold. +/// Any primitive data type a [`Val`] can hold. pub enum Type { Bool, Int, @@ -28,7 +28,7 @@ pub trait Val { } } -/// The actual data structure behind [`Val`](Val) +/// The actual data structure behind [`Val`]. struct Data { data: T, }