Skip to content

Commit 34576da

Browse files
committed
Small docstring changes for include_bytes and include_str
1 parent b374c53 commit 34576da

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/libstd/macros.rs

+9-5
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,11 @@ pub mod builtin {
381381

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

397399
/// Includes a file as a reference to a byte array.
398400
///
401+
/// The file is located relative to the current file. (similarly to how
402+
/// modules are found)
403+
///
399404
/// This macro will yield an expression of type `&'static [u8; N]` which is
400-
/// the contents of the filename specified. The file is located relative to
401-
/// the current file (similarly to how modules are found),
405+
/// the contents of the file.
402406
///
403407
/// # Examples
404408
///
@@ -454,7 +458,7 @@ pub mod builtin {
454458

455459
/// Parse a file as an expression or an item according to the context.
456460
///
457-
/// The file is located relative to the current file (similarly to how
461+
/// The file is located relative to the current file. (similarly to how
458462
/// modules are found)
459463
///
460464
/// Using this macro is often a bad idea, because if the file is

0 commit comments

Comments
 (0)