diff --git a/src/bsonc.rs b/src/bsonc.rs index ace68ee..c033141 100644 --- a/src/bsonc.rs +++ b/src/bsonc.rs @@ -36,7 +36,7 @@ impl Bsonc { // Inner will be null if there was an error converting the data. // We're assuming the bson crate works and therefore assert here. - // See: http://api.mongodb.org/libbson/current/bson_new_from_data.html + // See: http://mongoc.org/libbson/current/bson_new_from_data.html assert!(!inner.is_null()); Ok(Bsonc{ inner: inner }) @@ -46,7 +46,7 @@ impl Bsonc { assert!(!self.inner.is_null()); // This pointer should not be modified or freed - // See: http://api.mongodb.org/libbson/current/bson_get_data.html + // See: http://mongoc.org/libbson/current/bson_get_data.html let data_ptr = unsafe { bindings::bson_get_data(self.inner) }; assert!(!data_ptr.is_null()); diff --git a/src/flags.rs b/src/flags.rs index 60880c3..75876fc 100644 --- a/src/flags.rs +++ b/src/flags.rs @@ -29,7 +29,7 @@ pub trait FlagsValue { } /// Flags for insert operations -/// See: http://api.mongodb.org/c/current/mongoc_insert_flags_t.html +/// See: http://mongoc.org/libmongoc/current/mongoc_insert_flags_t.html #[derive(Eq,PartialEq,Ord,PartialOrd)] pub enum InsertFlag { ContinueOnError, @@ -52,7 +52,7 @@ impl FlagsValue for Flags { } /// Flags for query operations -/// See: http://api.mongodb.org/c/current/mongoc_query_flags_t.html +/// See: http://mongoc.org/libmongoc/current/mongoc_query_flags_t.html #[derive(Eq,PartialEq,Ord,PartialOrd)] pub enum QueryFlag { TailableCursor, @@ -85,7 +85,7 @@ impl FlagsValue for Flags { } /// Flags for deletion operations -/// See: http://api.mongodb.org/c/1.1.8/mongoc_remove_flags_t.html +/// See: http://mongoc.org/libmongoc/current/mongoc_remove_flags_t.html #[derive(Eq,PartialEq,Ord,PartialOrd)] pub enum RemoveFlag { SingleRemove @@ -102,7 +102,7 @@ impl FlagsValue for Flags { } /// Flags for update operations -/// See: http://api.mongodb.org/c/current/mongoc_update_flags_t.html +/// See: http://mongoc.org/libmongoc/current/mongoc_update_flags_t.html #[derive(Eq,PartialEq,Ord,PartialOrd)] pub enum UpdateFlag { Upsert, diff --git a/src/lib.rs b/src/lib.rs index d0227ee..9165058 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ //! //! It aims to provide a safe and ergonomic Rust interface which handles all the gnarly usage details of //! the C driver for you. We use Rust's type system to make sure that we can only use the -//! underlying C driver in the recommended way specified in it's [documentation](http://api.mongodb.org/c/current/). +//! underlying C driver in the recommended way specified in it's [documentation](http://mongoc.org/libmongoc/current/). //! //! To get started create a client pool wrapped in an `Arc` so we can share it between threads. Then pop a client from it //! you can use to perform operations. diff --git a/tests/cursor.rs b/tests/cursor.rs index 8e73723..ae495ef 100644 --- a/tests/cursor.rs +++ b/tests/cursor.rs @@ -32,7 +32,7 @@ fn test_cursor() { #[test] fn test_tailing_cursor() { - // See: http://api.mongodb.org/c/1.1.8/cursors.html#tailable + // See: http://mongoc.org/libmongoc/current/cursors.html#tailable let uri = Uri::new("mongodb://localhost:27017/").unwrap(); let pool = Arc::new(ClientPool::new(uri, None));