Skip to content

Commit

Permalink
Merge pull request #544 from alyssais/doc
Browse files Browse the repository at this point in the history
πŸ“ zb: update documentation for Guid::generate
  • Loading branch information
zeenix authored Jan 15, 2024
2 parents 2342e8f + 3c30104 commit b260e6b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zbus/src/guid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ pub struct Guid(String);
assert_impl_all!(Guid: Send, Sync, Unpin);

impl Guid {
/// Generate a D-Bus GUID that can be used with e.g. [`Connection::new_unix_server`].
///
/// [`Connection::new_unix_server`]: struct.Connection.html#method.new_unix_server
/// Generate a D-Bus GUID that can be used with e.g.
/// [`connection::Builder::server`](crate::connection::Builder::server).
pub fn generate() -> Self {
let r: Vec<u32> = repeat_with(rand::random::<u32>).take(3).collect();
let r3 = match SystemTime::now().duration_since(UNIX_EPOCH) {
Expand Down

0 comments on commit b260e6b

Please sign in to comment.