Skip to content

Commit

Permalink
Fix tests and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokya committed Jul 26, 2024
1 parent 0cc15c4 commit 97bef04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "eolib"
version = "1.0.0-RC9"
version = "1.0.0-RC10"
authors = ["Richard Leek <richard@richardleek.com>"]
description = "A core rust library for writing applications related to Endless Online"
edition = "2021"
Expand Down
14 changes: 7 additions & 7 deletions src/data/eo_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ impl From<String> for EoReaderError {
/// let data = Bytes::from_static(&[1, 43, 11, 254]);
/// let reader = EoReader::new(data);
///
/// assert_eq!(reader.get_byte().unwrap(), 1);
/// assert_eq!(reader.get_char().unwrap(), 42);
/// assert_eq!(reader.get_short().unwrap(), 10);
/// assert_eq!(reader.remaining().unwrap(), 0);
/// assert_eq!(reader.get_byte(), 1);
/// assert_eq!(reader.get_char(), 42);
/// assert_eq!(reader.get_short(), 10);
/// assert_eq!(reader.remaining(), 0);
/// ```
///
/// ## Chunked reading mode
Expand All @@ -51,19 +51,19 @@ impl From<String> for EoReaderError {
///
/// // Reads an integer (4 bytes) but only advances the cursor by one byte, accounting for
/// // the first chunk being a single byte.
/// assert_eq!(reader.get_int().unwrap(), 42);
/// assert_eq!(reader.get_int(), 42);
///
/// // Advances the cursor to the next chunk
/// reader.next_chunk().unwrap();
///
/// assert_eq!(reader.get_string().unwrap(), "Hello");
/// assert_eq!(reader.get_string(), "Hello");
///
/// // Advances the cursor to the next chunk
/// reader.next_chunk().unwrap();
///
/// // Reads an integer (4 bytes) but only advances the cursor by one byte, accounting for
/// // the last chunk
/// assert_eq!(reader.get_int().unwrap(), 1);
/// assert_eq!(reader.get_int(), 1);
/// ````
pub struct EoReader {
data: Bytes,
Expand Down

0 comments on commit 97bef04

Please sign in to comment.