Skip to content

Commit 0dd9686

Browse files
committed
Change up C functions we say we're similar to
1 parent 48cd577 commit 0dd9686

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sprintf-rs
22

3-
**a clone of C s(n)printf in Rust**
3+
**a clone of C sprintf in Rust**
44

55
This crate was created out of a desire to provide C printf-style formatting
66
in a WASM program, where there is no libc.

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub enum PrintfError {
4444

4545
pub type Result<T> = std::result::Result<T, PrintfError>;
4646

47-
/// Format a string. (Roughly equivalent to `vsnprintf` in C)
47+
/// Format a string. (Roughly equivalent to `vsnprintf` or `vasprintf` in C)
4848
///
4949
/// Takes a printf-style format string `format` and a slice of dynamically
5050
/// typed arguments, `args`.
@@ -107,7 +107,7 @@ fn vsprintfp(format: &[FormatElement], args: &[&dyn Printf]) -> Result<String> {
107107
}
108108
}
109109

110-
/// Format a string. (Roughly equivalent to `snprintf` in C)
110+
/// Format a string. (Roughly equivalent to `snprintf` or `asprintf` in C)
111111
///
112112
/// Takes a printf-style format string `format` and a variable number of
113113
/// additional arguments.

0 commit comments

Comments
 (0)