Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation links #649

Merged
merged 6 commits into from
Feb 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ast: Improve documentation
CohenArthur committed Feb 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ab5f202461c1f971d77570f08b050b275f16f98b
8 changes: 4 additions & 4 deletions ast/src/lib.rs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ pub enum TypeKind {

/// A type argument, i.e. when performing a specific generic call or specifying a variable's type
///
/// ```ignore
/// ```text
/// a: int = id[int](15);
///
/// a: int = 15;
@@ -49,7 +49,7 @@ pub enum TypeContent {
/// A named tuple, or tuple type: `type Foo(Bar, Baz);`
Tuple(Vec<Type>),
/// A type alias: `type Foo = Bar;`
/// This can be an alias to a multi type - a single [`TypeArgument`] of kind [`TypeKind::Multi`]
/// This can be an alias to a multi type - a single [`Type`] of kind [`TypeKind::Multi`]
Alias(Type),
}

@@ -189,8 +189,8 @@ pub enum Node {
Empty,
}

/// The [`Ast`] structure is a wrapper around the [`AstNode`] sum type, which contains
/// extra information such as the node's [`Location`]
/// The [`Ast`] structure is a wrapper around the [`Node`] sum type, which contains
/// extra information such as the node's location
#[derive(Debug, Clone)]
pub struct Ast {
pub location: SpanTuple,