Skip to content

Commit 5539564

Browse files
committed
fix: consistent API for documentation
Signed-off-by: azjezz <[email protected]>
1 parent 24208bd commit 5539564

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
open_collective: php-standard-library
1+
github: azjezz

src/constant.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl Constant {
2323
}
2424
}
2525

26-
pub fn documented<T: ToString>(mut self, documentation: Document) -> Self {
26+
pub fn document(mut self, documentation: Document) -> Self {
2727
self.documentation = Some(documentation);
2828

2929
self
@@ -104,7 +104,7 @@ impl ClassConstant {
104104
}
105105
}
106106

107-
pub fn documented<T: ToString>(mut self, documentation: Document) -> Self {
107+
pub fn document(mut self, documentation: Document) -> Self {
108108
self.documentation = Some(documentation);
109109

110110
self

0 commit comments

Comments
 (0)