style: Document a few more macros.

This commit is contained in:
Emilio Cobos Álvarez 2019-01-13 21:42:38 +01:00
parent f2d6e07aa0
commit 8101539c0a
2 changed files with 3 additions and 0 deletions

View file

@ -130,6 +130,7 @@ RULE_TEMPLATE = '''
'''[1:]
MACRO_TEMPLATE = '''
/// Returns a static atom by passing the literal string it represents.
#[macro_export]
macro_rules! atom {{
{body}\

View file

@ -11,6 +11,8 @@ use std::borrow::Borrow;
use std::fmt;
use std::ops::Deref;
/// In Gecko namespaces are just regular atoms, so this is a simple macro to
/// forward one macro to the other.
#[macro_export]
macro_rules! ns {
() => {