Skip to content

Commit

Permalink
Small docstring changes for include_bytes and include_str
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 21, 2016
1 parent b374c53 commit 34576da
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/libstd/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,11 @@ pub mod builtin {

/// Includes a utf8-encoded file as a string.
///
/// The file is located relative to the current file. (similarly to how
/// modules are found)
///
/// This macro will yield an expression of type `&'static str` which is the
/// contents of the filename specified. The file is located relative to the
/// current file (similarly to how modules are found),
/// contents of the file.
///
/// # Examples
///
Expand All @@ -396,9 +398,11 @@ pub mod builtin {

/// Includes a file as a reference to a byte array.
///
/// The file is located relative to the current file. (similarly to how
/// modules are found)
///
/// This macro will yield an expression of type `&'static [u8; N]` which is
/// the contents of the filename specified. The file is located relative to
/// the current file (similarly to how modules are found),
/// the contents of the file.
///
/// # Examples
///
Expand Down Expand Up @@ -454,7 +458,7 @@ pub mod builtin {

/// Parse a file as an expression or an item according to the context.
///
/// The file is located relative to the current file (similarly to how
/// The file is located relative to the current file. (similarly to how
/// modules are found)
///
/// Using this macro is often a bad idea, because if the file is
Expand Down

0 comments on commit 34576da

Please sign in to comment.