We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04d6c6b commit 68ce139Copy full SHA for 68ce139
crates/rune/src/ast.rs
@@ -9,11 +9,12 @@
9
//! ```
10
//! use rune::{Context, FromValue, Module, Vm};
11
//! use rune::ast;
12
+//! use rune::compile;
13
//! use rune::macros::{quote, MacroContext, TokenStream};
14
//! use rune::parse::Parser;
15
//! use std::sync::Arc;
16
//!
-//! fn ident_to_string(ctx: &mut MacroContext<'_>, stream: &TokenStream) -> rune::Result<TokenStream> {
17
+//! fn ident_to_string(ctx: &mut MacroContext<'_>, stream: &TokenStream) -> compile::Result<TokenStream> {
18
//! let mut p = Parser::from_token_stream(stream, ctx.stream_span());
19
//! let ident = p.parse_all::<ast::Ident>()?;
20
//! let ident = ctx.resolve(ident)?.to_owned();
0 commit comments