Skip to content

Commit 2d6d872

Browse files
committed
fix docs and add to changelog
1 parent 232ab15 commit 2d6d872

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ when upgrading from a version of rust-sdl2 to another.
33

44
### Next
55

6+
[PR #1408](https://github.com/Rust-SDL2/rust-sdl2/pull/1408) Allow comparing `Version`s, add constant with the version the bindings were compiled with.
7+
68
[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS
79

810
### v0.37.0

src/sdl2/version.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
/*!
2-
Querying SDL Version
3-
*/
1+
//! Querying SDL Version
42
53
use std::ffi::CStr;
64
use std::fmt;
75

86
use crate::sys;
97

10-
/// A structure that contains information about the version of SDL in use.
8+
/// A structure that contains a version of SDL.
119
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, PartialOrd, Ord)]
1210
pub struct Version {
1311
/// major version
@@ -27,7 +25,7 @@ impl Version {
2725
patch: sys::SDL_PATCHLEVEL as u8,
2826
};
2927

30-
/// Convert a raw *SDL_version to Version.
28+
/// Convert a raw SDL_version to Version.
3129
pub fn from_ll(v: sys::SDL_version) -> Version {
3230
Version {
3331
major: v.major,

0 commit comments

Comments
 (0)