Merge pull request #29 from tdittr/feature/doc-tests-in-ci

Add `cargo test` to CI run and fix an error found by it
This commit is contained in:
9names 2021-04-28 14:02:07 +10:00 committed by GitHub
commit 3bdc338a0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -25,3 +25,7 @@ jobs:
with:
command: clippy
args: -- -Dwarnings
- uses: actions-rs/cargo@v1
with:
command: test
args: --target x86_64-unknown-linux-gnu

View file

@ -266,7 +266,7 @@ float_funcs! {
/// Convert a float to a signed 64-bit integer, rounding towards -Infinity, and clamping
/// the result to lie within the range -0x8000000000000000 to 0x7FFFFFFFFFFFFFFF
0x6c float_to_int64(v: f32) -> i64;
/// Convert a float to a signed fixed point 64-bit integer representation where n
/// Convert a float to a signed fixed point 64-bit integer representation where n
/// specifies the position of the binary point in the resulting fixed point representation -
/// e.g. _float2fix(0.5f, 16) == 0x8000. This method rounds towards -Infinity, and
/// clamps the resulting integer to lie within the range -0x8000000000000000 to