about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2015-05-04 17:37:03 -0400
committerSteven Allen <steven@stebalien.com>2015-05-04 17:38:10 -0400
commitb630cd74dc1ab65840397ba2a7d1c8009c1ef721 (patch)
treea21590e29e8ec00f6dbef1495baa0e1ac006c2e4
parent9b481f89d104963e0b91c234ce9c8f2eb2216f15 (diff)
downloadrust-b630cd74dc1ab65840397ba2a7d1c8009c1ef721.tar.gz
rust-b630cd74dc1ab65840397ba2a7d1c8009c1ef721.zip
Strings and vectors are not built-in types.
strs messy but string is something else...
-rw-r--r--src/doc/complement-lang-faq.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/complement-lang-faq.md b/src/doc/complement-lang-faq.md
index fa4e0304d1a..92e2fd93df4 100644
--- a/src/doc/complement-lang-faq.md
+++ b/src/doc/complement-lang-faq.md
@@ -109,7 +109,7 @@ This does mean that indexed access to a Unicode codepoint inside a `str` value i
 * Most "character oriented" operations on text only work under very restricted language assumptions sets such as "ASCII-range codepoints only". Outside ASCII-range, you tend to have to use a complex (non-constant-time) algorithm for determining linguistic-unit (glyph, word, paragraph) boundaries anyways. We recommend using an "honest" linguistically-aware, Unicode-approved algorithm.
 * The `char` type is UCS4. If you honestly need to do a codepoint-at-a-time algorithm, it's trivial to write a `type wstr = [char]`, and unpack a `str` into it in a single pass, then work with the `wstr`. In other words: the fact that the language is not "decoding to UCS4 by default" shouldn't stop you from decoding (or re-encoding any other way) if you need to work with that encoding.
 
-## Why are strings, vectors etc. built-in types rather than (say) special kinds of trait/impl?
+## Why are `str`s, slices, arrays etc. built-in types rather than (say) special kinds of trait/impl?
 
 In each case there is one or more operator, literal constructor, overloaded use or integration with a built-in control structure that makes us think it would be awkward to phrase the type in terms of more-general type constructors. Same as, say, with numbers! But this is partly an aesthetic call, and we'd be willing to look at a worked-out proposal for eliminating or rephrasing these special cases.