Skip to content

Commit 6b192e8

Browse files
docs: remove outdated ClassBuilder::property() documentation (#603)
The `default` parameter was removed in 0f7bbf3 as part of #372, update the documentation accordingly.
1 parent af7e883 commit 6b192e8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/builders/class.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,13 @@ impl ClassBuilder {
9999
self
100100
}
101101

102-
/// Adds a property to the class. The initial type of the property is given
103-
/// by the type of the given default. Note that the user can change the
104-
/// type.
102+
/// Adds a property to the class.
105103
///
106104
/// # Parameters
107105
///
108106
/// * `name` - The name of the property to add to the class.
109-
/// * `default` - The default value of the property.
110107
/// * `flags` - Flags relating to the property. See [`PropertyFlags`].
111108
/// * `docs` - Documentation comments for the property.
112-
///
113-
/// # Panics
114-
///
115-
/// Function will panic if the given `default` cannot be converted into a
116-
/// [`Zval`].
117109
pub fn property<T: Into<String>>(
118110
mut self,
119111
name: T,

0 commit comments

Comments
 (0)