Update docs

This commit is contained in:
Alex Orlenko
2024-10-19 23:10:30 +01:00
parent a020b2b5b2
commit 93a1a55aaa
20 changed files with 298 additions and 326 deletions
+5 -5
View File
@@ -5,16 +5,16 @@ use std::os::raw::{c_int, c_void};
use std::string::String as StdString;
use std::{cmp, fmt, slice, str};
use crate::error::{Error, Result};
use crate::state::Lua;
use crate::types::{LuaType, ValueRef};
#[cfg(feature = "serialize")]
use {
serde::ser::{Serialize, Serializer},
std::result::Result as StdResult,
};
use crate::error::{Error, Result};
use crate::state::Lua;
use crate::types::{LuaType, ValueRef};
/// Handle to an internal Lua string.
///
/// Unlike Rust strings, Lua strings may not be valid UTF-8.
@@ -148,7 +148,7 @@ impl fmt::Debug for String {
}
}
// Lua strings are basically &[u8] slices, so implement PartialEq for anything resembling that.
// Lua strings are basically `&[u8]` slices, so implement `PartialEq` for anything resembling that.
//
// This makes our `String` comparable with `Vec<u8>`, `[u8]`, `&str` and `String`.
//