Skip to content

Commit 1427441

Browse files
committed
remove all mention of NULL in doc.
1 parent 38f7166 commit 1427441

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/rsfml/graphics/convex_shape.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ impl<'self> ConvexShape<'self> {
468468
* a pointer to the one that you passed to this function.
469469
* If the source texture is destroyed and the shape tries to
470470
* use it, the behaviour is undefined.
471-
* texture can be NULL to disable texturing.
472471
* If reset_rect is true, the TextureRect property of
473472
* the shape is automatically adjusted to the size of the new
474473
* texture. If it is false, the texture rect is left unchanged.

src/rsfml/graphics/image.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ impl Image {
136136
*
137137
* # Arguments
138138
* * filename - Path of the image file to load
139-
* Return a new Image object, or NULL if it failed
139+
*
140+
* Return a new Some(Image) object, or None if it failed
140141
*/
141142
#[fixed_stack_segment] #[inline(never)]
142143
pub fn new_from_file(filename : ~str) -> Option<Image> {

src/rsfml/graphics/rectangle_shape.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ impl<'self> RectangleShape<'self> {
513513
* a pointer to the one that you passed to this function.
514514
* If the source texture is destroyed and the shape tries to
515515
* use it, the behaviour is undefined.
516-
* texture can be NULL to disable texturing.
517516
* If reset_rect is true, the TextureRect property of
518517
* the shape is automatically adjusted to the size of the new
519518
* texture. If it is false, the texture rect is left unchanged.

src/rsfml/graphics/shader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl<'self> Shader<'self> {
121121
* Load both the vertex and fragment shaders from source codes in memory
122122
*
123123
* This function can load both the vertex and the fragment
124-
* shaders, or only one of them: pass NULL if you don't want to load
124+
* shaders, or only one of them: pass None if you don't want to load
125125
* either the vertex shader or the fragment shader.
126126
* The sources must be valid shaders in GLSL language. GLSL is
127127
* a C-like language dedicated to OpenGL shaders; you'll

0 commit comments

Comments
 (0)