Docs
Some checks failed
/ build (push) Failing after 1m24s
/ clippy (push) Successful in 1m17s

This commit is contained in:
xqtc 2024-07-12 19:04:15 +02:00
parent aa5f27e057
commit 75ea815ba5

View file

@ -61,6 +61,16 @@ pub struct Lexer {
/// Instantiates Lexer and retrieves Tokens of given source.
/// Returns Arc<[Token]>
/// # Example:
/// ```
/// let lexed: Arc<[Token]> = lex!(r#"
/// #version 440
/// uniform float time;
/// void main() {
/// gl_FragColor = vec4(1.0, 0.5, 0.2, 1.0);
/// }
/// "#);
/// ```
/// Equivalent to:
/// ```
/// let source = "some source";