Skip to content

Commit d99560a

Browse files
committed
fix s -> state in the docs
1 parent d8b66d8 commit d99560a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

libbz2-rs-sys/src/bzlib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ impl TryFrom<i32> for Action {
10581058
/// - after [`BZ2_bzCompressEnd`]
10591059
/// - [`BZ_PARAM_ERROR`] if any of
10601060
/// - `strm.is_null()`
1061-
/// - `strm.s.is_null()`
1061+
/// - `strm.state.is_null()`
10621062
/// - action is not one of [`BZ_RUN`], [`BZ_FLUSH`] or [`BZ_FINISH`]
10631063
/// - [`BZ_RUN_OK`] successfully compressed, but ran out of input or output space
10641064
/// - [`BZ_FLUSH_OK`] not all compressed data has been written to the output yet
@@ -1173,7 +1173,7 @@ fn compress_loop(strm: &mut BzStream<EState>, s: &mut EState, action: i32) -> Re
11731173
///
11741174
/// - [`BZ_PARAM_ERROR`] if any of
11751175
/// - `strm.is_null()`
1176-
/// - `strm.s.is_null()`
1176+
/// - `strm.state.is_null()`
11771177
/// - no [valid allocator](bz_stream#custom-allocators) could be configured
11781178
/// - [`BZ_OK`] otherwise
11791179
///
@@ -1766,7 +1766,7 @@ fn un_rle_obuf_to_output_small(strm: &mut BzStream<DState>, s: &mut DState) -> b
17661766
///
17671767
/// - [`BZ_PARAM_ERROR`] if any of
17681768
/// - `strm.is_null()`
1769-
/// - `strm.s.is_null()`
1769+
/// - `strm.state.is_null()`
17701770
/// - `strm.avail_out < 1`
17711771
/// - [`BZ_DATA_ERROR`] if a data integrity error is detected in the compressed stream
17721772
/// - [`BZ_DATA_ERROR_MAGIC`] if the compressed stream doesn't begin with the right magic bytes
@@ -1879,7 +1879,7 @@ pub(crate) fn BZ2_bzDecompressHelp(strm: &mut BzStream<DState>) -> ReturnCode {
18791879
///
18801880
/// - [`BZ_PARAM_ERROR`] if any of
18811881
/// - `strm.is_null()`
1882-
/// - `strm.s.is_null()`
1882+
/// - `strm.state.is_null()`
18831883
/// - no [valid allocator](bz_stream#custom-allocators) could be configured
18841884
/// - [`BZ_OK`] otherwise
18851885
///

0 commit comments

Comments
 (0)