This commit is contained in:
abbie 2022-03-13 18:48:48 +00:00
parent 96df3dd8ba
commit 9c5290813a
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "clippet" name = "clippet"
description = "Provides a teeny way to have some nice byte structures that's easy to use." description = "Provides a teeny way to have some nice byte structures that's easy to use."
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
authors = ["Celeste <colean@colean.cc>"] authors = ["Celeste <colean@colean.cc>"]
license = "LGPL-3.0-or-later" license = "LGPL-3.0-or-later"

View file

@ -125,7 +125,7 @@ impl Clippet {
/// This uses a string reference. /// This uses a string reference.
/// ///
/// ```no_run /// ```no_run
/// let data = Clippet::from_string("Lorem ipsum dolor amet..."); /// let data = Clippet::from_string("Lorem ipsum dolor amet...", 512);
/// ``` /// ```
pub fn from_string(str: &str, size: usize) -> Clippet { pub fn from_string(str: &str, size: usize) -> Clippet {
let mut i = false; let mut i = false;
@ -147,7 +147,7 @@ impl Clippet {
/// Consumes the Clippet, combines all of it's byte sequences and outputs them as a String literal. /// Consumes the Clippet, combines all of it's byte sequences and outputs them as a String literal.
/// ///
/// ```no_run /// ```no_run
/// let data = Clippet::from_string("Hello, World!"); /// let data = Clippet::from_string("Hello, World!", 512);
/// println!("{}", data.combine()); /// Hello, World! /// println!("{}", data.combine()); /// Hello, World!
/// ``` /// ```
pub fn combine(self) -> String { pub fn combine(self) -> String {