Skip to content

Commit 2f2d56b

Browse files
authored
param_unc_names takes const self (#294)
1 parent 8feb64a commit 2f2d56b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/bs_safe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ impl<T: Borrow<StanLibrary>> Model<T> {
345345
/// generally last-index major) order. Parameter indices are separated with
346346
/// periods (`.`). For example, `a[3]` is written `a.3` and `b[2,
347347
/// 3]` as `b.2.3`. The numbering follows Stan and is indexed from 1.
348-
pub fn param_unc_names(&mut self) -> &str {
348+
pub fn param_unc_names(&self) -> &str {
349349
let cstr =
350350
unsafe { CStr::from_ptr(self.ffi_lib().bs_param_unc_names(self.model.as_ptr())) };
351351
cstr.to_str()

0 commit comments

Comments
 (0)