Refine docs.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! Rhai is a tiny, simple and very fast embedded scripting language for Rust
|
||||
//! that gives you a safe and easy way to add scripting to your applications.
|
||||
//! It provides a familiar syntax based on JS and Rust and a simple Rust interface.
|
||||
//! It provides a familiar syntax based on JavaScript and Rust and a simple Rust interface.
|
||||
//! Here is a quick example.
|
||||
//!
|
||||
//! First, the contents of `my_script.rhai`:
|
||||
|
@@ -677,12 +677,12 @@ impl<'a> TokenIterator<'a> {
|
||||
_ => unreachable!(),
|
||||
});
|
||||
|
||||
while let Some(next_char_in_hex) = self.peek_next() {
|
||||
if !valid.contains(&next_char_in_hex) {
|
||||
while let Some(next_char_in_escape_seq) = self.peek_next() {
|
||||
if !valid.contains(&next_char_in_escape_seq) {
|
||||
break;
|
||||
}
|
||||
|
||||
result.push(next_char_in_hex);
|
||||
result.push(next_char_in_escape_seq);
|
||||
self.eat_next();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user