Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ import SwiftRs

@_cdecl("swift_print")
public func swiftPrint(value: SRString) {
// .to_string() converts the SRString to a Swift String
print(value.to_string())
// .toString() converts the SRString to a Swift String
print(value.toString())
}
```

Expand Down Expand Up @@ -303,7 +303,7 @@ fn main() {
let value_str: &str = &*value_srstring;

// SRString also implements Display
println!("{}", value_srstring); // Will print "lorem ipsum" to the console
println!("{value_srstring}"); // Will print "lorem ipsum" to the console
}
```

Expand Down