about summary refs log tree commit diff
path: root/src/doc/trpl/strings.md
AgeCommit message (Collapse)AuthorLines
2015-11-19src/doc/trpl -> src/doc/bookSteve Klabnik-189/+0
The book was located under 'src/doc/trpl' because originally, it was going to be hosted under that URL. Late in the game, before 1.0, we decided that /book was a better one, so we changed the output, but not the input. This causes confusion for no good reason. So we'll change the source directory to look like the output directory, like for every other thing in src/doc.
2015-11-15Fix a typoJan Likar-1/+1
2015-11-15Improve Strings chapterJan Likar-2/+3
2015-11-15Update 'Strings' chapter of the bookJan Likar-6/+6
Fix #29823 by further explaining `&str` and pointing out the difference between `&str` and `&'static str`.
2015-11-06Add multi-line string literals to TRPLSteve Klabnik-3/+23
Fixes #29591
2015-10-19Clean whitespaceCarlos Liam-2/+2
Remove leading newlines; replace lines containing only whitespace with empty lines; replace multiple trailing newlines with a single newline; remove trailing whitespace in lines
2015-08-09TRPL: minor correction on how `chars().nth()` workVincent Bernat-1/+1
The previous wording was confusing. While would we need to go through the whole list just to find the first code point? `chars()` being an iterator, we only need to walk from the beginning of the list.
2015-06-09make note of slicing syntax in TRPL: stringsSteve Klabnik-0/+24
Fixes #25853
2015-05-25book: add no_run and use statement to strings no-coercion exampleThomas Karpiniec-1/+3
2015-05-24book: explanation that String -> &str coercion doesn't happen for &str traitsThomas Karpiniec-0/+13
2015-05-21Fix the typo in The Rust Programming Language book, 5.18. StringsOlegTsyba-1/+1
2015-05-18TRPL: Add `rust` Marker to Some Code BlockPascal Hertleif-1/+1
This adds strictly more information to the source files and reduces the need for customized tooling to render the book. (While this should not change the output of _rustbook_, it is very useful when rendering the sources with external tools like Pandoc.)
2015-05-16Avoid calling a variable 'string' when discussing strings.Wilfred Hughes-2/+2
Newcomers to Rust need to learn the distinctinion between `&str` and `String`, so additonally having `string` in an example risks confusion.
2015-05-06Fix indentation in the "Strings" chapterHika Hibariya-2/+2
2015-04-20TRPL copyedits: stringsSteve Klabnik-23/+91
2015-02-19book: Minor clarifications about stringsBrian Anderson-2/+4
2015-02-02Closes issue #21850Filip SzczepaƄski-1/+1
2015-01-30Don't use as_slice() in docsSteve Klabnik-23/+3
Use deref coercions instead.
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-2/+2
This commit is an attempt to standardize the use of punctuation and formatting in "The Rust Programming Language" as discussed in #19823. - Convert bold text to italicized textcwhen referring to terminology. - Convert single-quoted text to italicized or double-quoted text, depending on context. - Use double quotes only in the case of scare quotes or quotations.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-0/+79